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();
}
}
Type[] types = assembly.GetTypes();
foreach (Type t in types)
{
if (t.IsAssignableFrom(typeof(System.Windows.Forms.Form))) //*******************
//you can create a instance to do something,like :
{
System.Windows.Forms.Form frm = Activator.CreateInstance(t);
frm.Show();
}
}