Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically selecting forms from a project

Status
Not open for further replies.

bodmin

Technical User
Apr 1, 2004
98
GB
Hi guys,

Just wondering if anyone has any ideas as to how I would dynamically loop through all forms within a project and then open each from a specific list of form names?

All ideas greatly appreciated as I am new to VB.NET having more experience with VBA where to perform this I would have looped through the forms collection of the application. Therefore really just looking for an equivalent way of performing this.

cheers
 
you could use REFLECTION, to get a list of all of the forms that you have, then populate a drop list with the form names (or the fancy names, which could be in the "Tag" property) then have a display class/function that takes the form name and creates and shows an instance using REFLECTION again.

There is a FAQ on reflection


-Sometimes the answer to your question is the hack that works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top