Click here to Skip to main content
15,920,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I need to list out all of forms in my project using simple code write in any one of those form

here i got one code which only returns form name that is open

For Each frm In Application.OpenForms

but what about forms which is not open but is in the solution ...

please help
Mehdi Gholam 15-Dec-14 2:57am    
yogeshysankar 15-Dec-14 5:05am    
I just want to get list of label names used in all form for multiple language support to software .
Do you have better idea, how multiple language support is given to application?

Thanks all of you this is solve problem i got solution

Dim myAssembly As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()

   Dim types As Type() = myAssembly.GetTypes()
For Each t As Type In types 
   If UCase(t.BaseType.ToString) = "SYSTEM.WINDOWS.FORMS.FORM" Then
   End If
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900