M
Michael Wong
Hi,
I am desperate searching for an answer to this problem.
I have shown a dialog (using ShowDialog) in my main form.
As I'm using a virtual desktop, I'm able to switch to another desktop
(which will hide or show the dialog and main form, depending if we are
leaving or coming back to that desktop).
The problem here is that when I leave the dialog open and switch away
and back again, the dialog closes, and the code following ShowDialog is
run, which is not the correct behavior.
This doesn't occur if I use MessageBox.Show
I tried to do a e.Cancel = true in the closing event of the dialog, but
it doesn't work at all.
Any idea?
I am desperate searching for an answer to this problem.
I have shown a dialog (using ShowDialog) in my main form.
As I'm using a virtual desktop, I'm able to switch to another desktop
(which will hide or show the dialog and main form, depending if we are
leaving or coming back to that desktop).
The problem here is that when I leave the dialog open and switch away
and back again, the dialog closes, and the code following ShowDialog is
run, which is not the correct behavior.
This doesn't occur if I use MessageBox.Show
I tried to do a e.Cancel = true in the closing event of the dialog, but
it doesn't work at all.
Any idea?