必须输入完全限定名,也就是包括了命名空间的名字,当然你也可以自己把命名空间的名称加上去,然后:
string name = "TestNamespace.Form1";Form frm = (Form)Activator.CreateInstance( Type.GetType( name ) );frm.Show();
string name = "TestNamespace.Form1";Form frm = (Form)Activator.CreateInstance( Type.GetType( name ) );frm.Show();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货