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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top