Form Names

Posted on 2006-05-30
Last Modified: 2010-04-23
How can I get the names of the forms which is existing in my application as a list?

Question by:gokhanoz
    LVL 44

    Accepted Solution

    Hi gokhanoz,

    for the open forms in the application you can use an arraylist or any other list like

        Dim frm As Form
        Dim arrFrm As ArrayList
        For Each frm In Application.OpenForms
        Next frm

    for all forms open or close you need to implement your own forms collection

    for vb 2005 there is the My namespace which has a Forms collection of your current project

    share what you know, learn what you don't

    Author Comment

    Hi brunintje, thanks for your answer and link.
    LVL 44

    Expert Comment

    thanks for the grade, glad to help

    pity they didn't bring the collection over untill VS 2005

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 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

    17 Experts available now in Live!

    Get 1:1 Help Now