--

判断控件类型
        1、可用控件的GetType函数,control.gettype().tostring,输出的类型带命名空间,如system.web.ui.webcontrols.button
        2、也可用TypeName函数,typename(control),输出的类型不带命名空间,如button控件直接输出button类型

        3、If   (obj.GetType   Is   GetType(System.Windows.Forms.TextBox))

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2021-05-19
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2021-09-15
相关资源
相似解决方案