ShowDialog() =?= Dispose()?

  • Thread starter Thread starter Phill. W
  • Start date Start date
P

Phill. W

Under what circumstances could a Form, displayed modally using
..ShowDialog, be instantly and untrappably Dispose'd??

I've built a MsgBox replacement but, in one application, it gets
called with the contents of an Exception and, instead of ShowDialog()
popping up the dialog, buttons and all, it "sort of" puts up the "outline"
of the dialog, but immediately Dispose's it - dialog.IsDisposed = True
immediately after the .ShowDialog call.

In another application, however, it works perfectly.

/Any/ Suggestions?

TIA,
Phill W.
 
* "Phill. W said:
Under what circumstances could a Form, displayed modally using
.ShowDialog, be instantly and untrappably Dispose'd??

I've built a MsgBox replacement but, in one application, it gets
called with the contents of an Exception and, instead of ShowDialog()
popping up the dialog, buttons and all, it "sort of" puts up the "outline"
of the dialog, but immediately Dispose's it - dialog.IsDisposed = True
immediately after the .ShowDialog call.

Post your code.
 
Back
Top