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
_________________________________
There are 2 types of people in the world: