Form Names

How can I get the names of the forms which is existing in my application as a list?

Who is Participating?
bruintjeConnect With a Mentor Commented:
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
gokhanozAuthor Commented:
Hi brunintje, thanks for your answer and link.
thanks for the grade, glad to help

pity they didn't bring the collection over untill VS 2005
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.