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