c# winform中遍历控件
摘要:foreach (Control c in this.Controls){if (c is ComboBox){c.Enabled = false;}}
阅读全文
posted @
2015-07-09 11:35
电脑小白
阅读(2219)
推荐(0)
wpf中遍历界面控件的方法
摘要:/// /// 遍历界面中的所有控件 /// /// private void SetNotEditable(UIElementCollection uiControls) { foreach (UIElement element in uiControls) { if (element i...
阅读全文
posted @
2015-07-09 11:32
电脑小白
阅读(6844)
推荐(0)