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

Posted on 2008-11-04
Last Modified: 2013-06-15
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
Question by:StuartK
    LVL 85

    Accepted Solution

    by:'re so close!  Microsoft wasn't consistent in its naming conventions...

    Instead of IsModal(), it is actually just Modal():

    Author Closing Comment

    Just Perfect, Thanks Idle Mind!!


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now