RadioBox、CheckBox和Validating事件的相关处理
|
日期:2006年12月18日 作者: 查看:[大字体
中字体 小字体]
|
110 if (tb.Text.Length == 0) 111 { 112 tb.Tag = false; 113 tb.BackColor = Color.Red; 114 } 115 else 116 { 117 tb.Tag = true; 118 tb.BackColor = SystemColors.Window; 119 } 120 121 //Call ValidateOK to set the OK button 122 ValidateOK(); 123 } 124 125 private void ValidateOK() 126 { 127 //Set the OK button to enabled if all the Tags are true 128 this.buttonOK.Enabled = ((bool)(this.textBoxName.Tag) && 129 (bool)(this.textBoxAge.Tag) && 130 (bool)(this.textBoxAddress.Tag)); 131 } 132 } 133} [示例说明]: 1、开发语言:C# 2、开发环境:Visual Studio.Net 2005 Team suite 3、开发模板:C#.net项目->Windows应用程序 http://www.cnblogs.com/volnet/archive/2006/11/27/574437.html(出处:清风网络学院)
上一篇:一个读取扩展名为xml的资源文件的方法
下一篇:xml文件调用css
|
| RadioBox、CheckBox和Validating事件的相关处理 相关文章: |
|
|
|
| RadioBox、CheckBox和Validating事件的相关处理 相关软件: |
|
|
|