private void Form1_Load(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.FileName = "calc.exe";
p.Exited += new EventHandler(Exit);
p.Start();
}
void Exit(object sender, EventArgs e)
{
Close();
}