I see the same behavior in both FormClosing and FormClosed, but I only have the code in one of the event handlers. Currently I have the code in the FormClosing event handler.
Einar
>Einar,
>
>Is it in the FormClosing or FormClosed or both? If it's in both, then there's your answer. Otherwise, which is it?
>
>Chad
>
>
>>This does not make a lot of sense. I have the following code in the FormClosing or FormClosed event handler:
>>
>>try
>>{
>> System.Diagnostics.Process.Start(System.AppDomain.CurrentDomain.BaseDirectory + "myapp.exe");
>>}
>>catch
>>{
>> MessageBox.Show("Unable to execute myapp.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
>>}
>>
>>
>>The problem is not that myapp.exe doesn't execute, but rather that two instances of myapp.exe are started!
>>If I put the exact same code (as above) in a button click only one instance of myapp is started.
>>
>>Does anyone know what could cause this behavior?
>>
>>Thanks,
>>Einar
Semper ubi sub ubi.