W
WRH
Hello
I used the VS designer to set up Process code as follows...
the problem is, although the process is executed, when
it is shut down I never get the Exited event.
....
private System.Diagnostics.Process process1;
....
this.process1 = new System.Diagnostics.Process();
....
// process1
//
this.process1.EnableRaisingEvents = true;
this.process1.SynchronizingObject = this;
this.process1.Exited += new System.EventHandler(this.process1_Exited);
....
process1.StartInfo.FileName = @"F:\G\MS Paint";
process1.Start();
....
private void process1_Exited(object sender, System.EventArgs e)
{
MessageBox.Show("Exited");
}
I used the VS designer to set up Process code as follows...
the problem is, although the process is executed, when
it is shut down I never get the Exited event.
....
private System.Diagnostics.Process process1;
....
this.process1 = new System.Diagnostics.Process();
....
// process1
//
this.process1.EnableRaisingEvents = true;
this.process1.SynchronizingObject = this;
this.process1.Exited += new System.EventHandler(this.process1_Exited);
....
process1.StartInfo.FileName = @"F:\G\MS Paint";
process1.Start();
....
private void process1_Exited(object sender, System.EventArgs e)
{
MessageBox.Show("Exited");
}