C#判断控件类型

发布时间:2017-10-17编辑:佚名阅读(2806)

1.用is

control is CheckBox

2.用GetType

control.GetType() == typeof(System.Windows.Forms.TextBox)


  关键字:C#判断控件类型


鼓掌

2

正能量

1

2

呵呵

0


评论区