比如 :
创建:
TextBox a = new TextBox();
a.Name = Class1;
this.Controls.Add(a);
调用:
if(this.ActiveControl is TextBox) 
{
 if(this.ActiveControl as TextBox).Name = "Class1")
 (this.ActiveControl as TextBox).Focus();
}

解决方案 »

  1.   

    我的class1不是一个控件,而是一个自己建立的类;并且,如何通过字符串method1来调用方法method1呢?
      

  2.   

    http://expert.csdn.net/Expert/topic/2214/2214138.xml?temp=.7811548
      

  3.   

    在帮助集合中搜一下Assembly。
      

  4.   

    System.Reflection.Assembly  assembly =AppDomain.CurrentDomain.Load(assemblyname);
    object s;
    s=assembly.CreateInstance(classnmae,true);
    s.GetType().GetMethod(functionName).Invoke(s,null);
      

  5.   

    使用反射,你参考一下System.Reflection