Identify open forms

Posted on 2011-05-05
Last Modified: 2012-05-11
In, how can I tell whether a given form is currently open?  I have some subroutines that I want to exit if a particular form is still open or run to completion if the form is not open, but I don't know the code to determine if the form in question is open or not.

Question by:thoecherl
    LVL 83

    Accepted Solution

    You can either see if its Disposed or not and then if its Visible is true.

    You can also get all open forms from


    LVL 21

    Expert Comment

    by:Alpesh Patel
    Hi you can check the child of master (MDI) form if you have.

    Application.OpenForms is the syntax of vb 6.0
    LVL 100

    Expert Comment

    I've requested that this question be deleted for the following reason:

    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Author Comment

    I am prepared to accept the solution from Codecruiser and award points, but I cannot do so because of the deletion request.  Please cancel the deletion so I can accept the solution.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
    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.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    760 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

    6 Experts available now in Live!

    Get 1:1 Help Now