• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Form Names

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

Thanks
0
gokhanoz
Asked:
gokhanoz
  • 2
1 Solution
 
bruintjeCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now