Dim asm As System.Reflection.Assembly
asm = System.Reflection.Assembly.GetExecutingAssembly()
Dim types As Type()
types = asm.GetTypes()
Dim t As Type
For Each t In types
If t Is Form Then
'you can create a instance to do something,like :
Dim frm As Form
frm = Activator.CreateInstance(t)
frm.Show()
End If
Next
Type[] types = assembly.GetTypes();
foreach( Type t in types )
{
if( t is Form )
//you can create a instance to do something,like :
{
Form frm = Activator.CreateInstance( t );
frm.Show();
}
}