object obj = this.GetType().GetField("控件名称", 
                System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance 
                | System.Reflection.BindingFlags.IgnoreCase).GetValue(this);
            Label lbl = (Label)obj; 

 

 

相关文章:

  • 2022-02-07
  • 2022-02-04
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-01-01
  • 2021-09-15
  • 2021-10-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案