Open forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I have a large project containing many forms and classes and even more
instances of them. I'm looking for a way of listing all active instances in
a project, i.e. all open forms and classes, basically anything that hasn't
been set to nothing. I know the obvious solution is to record this myself
but that is not viable in this project. Thank you for any help.
 
This is what you can write for getting all the forms that are loaded..

Dim frmP As Form
For Each frmP In Forms
Debug.Print f.Name
Next

I am not sure how you can get the other objects...
 
Shuja said:
This is what you can write for getting all the forms that are loaded..

Dim frmP As Form
For Each frmP In Forms
Debug.Print f.Name
Next

I am not sure how you can get the other objects...

That's VB6 code, it doesn't work in VB.NET because there is no 'Forms'
collection.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top