发布时间:2017-10-17编辑:佚名阅读(2806)
1.用is
control is CheckBox
2.用GetType
control.GetType() == typeof(System.Windows.Forms.TextBox)
关键字:C#判断控件类型
上一篇:Windows开启防火墙能ping通
下一篇:C# Control类转换成其它控件类型
2人
1人
0人
Copyright © 2018 我的空间 闽ICP备17023514号-2