利用放射来创建一个Form.
string assemblyname = "test"; string classname = assemblyname + ".Form1"; Assembly ass = Assembly.LoadFile(AppDomain.CurrentDomain.BaseDirectory + "test.exe"); Form form = ass.CreateInstance(classname) as Form; form.Show();
利用放射来创建一个Form.
string assemblyname = "test"; string classname = assemblyname + ".Form1"; Assembly ass = Assembly.LoadFile(AppDomain.CurrentDomain.BaseDirectory + "test.exe"); Form form = ass.CreateInstance(classname) as Form; form.Show();