How is a form "Show"ed

  • Thread starter Thread starter Darin
  • Start date Start date
D

Darin

I have many forms in an MDI application. Sometimes I show FORMA just by
a f.Show, other times it is f.ShowDialog. How can I tell within the form
code whether this form is shown via Show or ShowDialog???

TIA
 
If (Me.Modal) then
MessageBox.Show ("I'm from ShowDialog")
else
MessageBox.Show("I'm from Show()")
end if
 

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