//取得特定名称的控件

Control control = Controls.Find("button1", true)[0];

//取得该控件的属性
object o = control.GetType().GetProperty("PropertyName").GetValue(control, null);

//取得该控件的事件
System.Reflection.EventInfo ev = control.GetType().GetEvent("Click");

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-02-04
  • 2021-11-18
  • 2022-12-23
  • 2021-12-14
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-09-16
  • 2021-08-03
相关资源
相似解决方案