Is there a Forms collection?

  • Thread starter Water Cooler v2
  • Start date
W

Water Cooler v2

Is there a Forms collection in the .NET framework that contains the
instances of the currently loaded (in memory, whether hidden or
visible) forms in the current project? I am looking for something
similar to the Forms collection that VB6 had.
 
C

Cor Ligthert [MVP]

Water

There are 2 depending what kind of form you are using or if you set the
owner.

MdiChildren
OwnedForms

By the way, I like relevant crossposting, but what is the relevancy to
crosspost to the newsgroups CSharp and VB

I hope this helps,

Cor
 
R

Robin Mark Tucker

ahhh Cor - all of the questions answered in C# are also answered in VB and
visa-versa, just with a different syntax ;). I often browse the C# group
when I can't find a VB answer. Thats the beautfy of the CLR.
 
C

Cowboy \(Gregory A. Beamer\)

But, do you want your answer in VB or C#? To VB or not to VB, that is the
question! :)

I think Cor was simply stating that a cross post is not in order. I would
tend to agree. It is better to target your post. In this instance, however,
I can see the reasoning more than some of the cross-postings out there.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
R

Robin Mark Tucker

It's true yes, once you get to know a group, you get a feel for whether the
question is likely to be answered. At least initially I tended to post to a
few groups, ie. C#, VB and interop (as an example) with crossposts, when I
had particular MS Word problems some time ago. It's like google though, you
learn how to phrase a query to get the best response. Same with asking a
question in the newsgroups ;)
 
H

Herfried K. Wagner [MVP]

Water Cooler v2 said:
Is there a Forms collection in the .NET framework that contains the
instances of the currently loaded (in memory, whether hidden or
visible) forms in the current project? I am looking for something
similar to the Forms collection that VB6 had.

..NET 2.0 (VB 2005):

Visual Basic Language Reference -- 'My.Application.OpenForms' Property
<URL:http://msdn2.microsoft.com/en-us/library/eh13dca9.aspx>
 

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

Top