例如:
private void buuton1_Click( object sender, EventArgs e )
{
Assembly _myAssembly = Assembly.LoadFrom(@"e:windowsApplication6.dll");
Type _myType = _myAssembly.GetType( "WindowsApplication6.Form1" );
object obj;
obj = Activator.CreateInstance( _myType );
Form frmform = null;
frmform = (Form)obj;
frmform.Show();
}
{
Assembly _myAssembly = Assembly.LoadFrom(@"e:windowsApplication6.dll");
Type _myType = _myAssembly.GetType( "WindowsApplication6.Form1" );
object obj;
obj = Activator.CreateInstance( _myType );
Form frmform = null;
frmform = (Form)obj;
frmform.Show();
}