Determin if a form is being displayed modally?

  • Thread starter Hong Kong Phooey
  • Start date
H

Hong Kong Phooey

How can I determine if a form is being displayed as a modal dialog
programatically?

I have a form which may be used either way in the application. If shown
modally using ShowDialog(), all the regular caveats apply (ESC=Cancel,
ENTER=OK, AcceptButton, CancelButton), but when simply shown using Show(),
none of those apply and the user must click the 'X' in the ControlBox.

--

Any help is appreciated.
Thanks in advance.

Hong Kong Phooey
 

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

Top