用Assembly.CreateInstance 方法 (String)啊,这个正适合用啊.

解决方案 »

  1.   

    Form frm = (Form)Activator.CreateInstance(项目类名.窗体类名);
    frm.ShowDialog();
      

  2.   

    object obj = Activator.CreateInstance(Type.GetType("Test.FormA"));
            
    Form showForm  = (Form)obj;
    showForm.Show();
      

  3.   

    Assembly.CreateInstance(Type.FullName)
    Activator.CreateInstance("",Name)
    都行啊!Form form = Assembly.CreateInstance("Test.Form." + TextBox1.Text);
    form.Show();Form form = Activator.CreateInstance("","Test.Form." + TextBox1.Text);
    form.Show();