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

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

VB
For Each frm In Application.OpenForms
   MessageBox.Show(frm.Name)
Next


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

please help
Posted
Comments
Mehdi Gholam 15-Dec-14 2:57am    
Why?
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

VB
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
       messagebox.show(t.name)
   End If
Next
 
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