Delphi中:
TForm(TComponentClass(GetClass('T' + FrmName)).Create(application))通窗体的 Name 来创建窗体.

解决方案 »

  1.   

    转贴
     Assembly tempAssembly = Assembly.GetExecutingAssembly(); 
     
              // if class is located in another DLL or EXE, use something like 
     
              // Assembly tempAssembly = Assembly.LoadFrom("myDLL.DLL"); 
     
              // or 
     
              // Assembly tempAssembly = Assembly.LoadFrom("myEXE.exe"); 
      
              Form frm1 = (Form) tempAssembly.CreateInstance(textBox1.Text);// as Form; 
     
              frm1.Show(); 
      

  2.   

    Object o =Activator.CreateInstance(Type.GetType("完整类名"));
    if(o!=null)
    {
    this.Text =o.ToString();
    }
      

  3.   

    http://community.csdn.net/Expert/topic/4318/4318117.xml?temp=.9725
      

  4.   

    System.Reflection.Assembly ass = System.Reflection.Assembly.Load(程序集名称);
    object obj = ass.CreateInstance(className);
     Form op = (Form)obj;