Form Names

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

Thanks
gokhanozAsked:
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
      arrFrm.Add(frm.Name)
    Next frm

for all forms open or close you need to implement your own forms collection
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/msg/356a9cfe7e060a73

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

----------
bruintje
share what you know, learn what you don't
0
 
gokhanozAuthor Commented:
Hi brunintje, thanks for your answer and link.
0
 
bruintjeCommented:
thanks for the grade, glad to help

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