Home All Groups Group Topic Archive Search About
Author
1 Jul 2005 7:34 AM
js1300
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.

Author
1 Jul 2005 10:22 AM
Shuja
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...
--
--Incomplete Knowledge is always dangerous; Anyway Google helps to manage!--



Show quoteHide quote
"js1300" wrote:

> 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.
Author
1 Jul 2005 11:58 AM
Herfried K. Wagner [MVP]
"Shuja" <Sh***@discussions.microsoft.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>