IsDialog Boolean to check if Form is in Dialog Mode??

Hi, Thanks for clicking,

We show lots of forms, some in ShowDialog mode and some simply as Show

How can we check to see if the current Form is in Dialog mode programmatically

That is, Is there a property of the form called IsModal or IsDialog or something similar to return a Boolean value??

Genuine thanks for reading
Stuart
StuartKAsked:
Who is Participating?
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Lol...you're so close!  Microsoft wasn't consistent in its naming conventions...

Instead of IsModal(), it is actually just Modal():
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.modal.aspx
0
 
StuartKAuthor Commented:
Just Perfect, Thanks Idle Mind!!

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.