Hello all
i would like to send data from an application running client side to another application running Server side
in need to some how make an if statment that will send this data only IF an application has been killed
thats part one
the next part is to add some text to another program saying connected or dissconnected depending if this prossess is killed
here is my coding soo far
[Code]
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Text;
using
System.Windows.Forms;
using
System.Diagnostics;
using
System.IO;
namespace
WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
Process[] ps = Process.GetProcessesByName("DB");
foreach (Process pr in ps)
{
pr.Kill();
pr.Close();
}
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Thank you for using this application", "Application 1",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
[/Code]
Many thanks