讨论交流:http://x8.maicoo.com/team/8664.html
[示例出处]:本示例来自《C#入门经典》第三版中文版,P349-P353
[示例涉及]:
1、RadioBox、CheckBox控件的基本使用
2、Validating事件的使用(同[C#][SAMPLE][CODE][Control]TextBox和Validating事件的相关处理 )
3、多委托处理同一事件方法(同[C#][SAMPLE][CODE][Control]TextBox和Validating事件的相关处理 )
[示例代码]:2文件(其余默认)
Form1.Designer.cs
1namespace WA_TextBoxTest
2{
3 partial class Form1
4 {
5 /**//// <summary>
6 /// 必需的设计器变量。
7 /// </summary>
8 private System.ComponentModel.IContainer components = null;
9
10 /**//// <summary>
11 /// 清理所有正在使用的资源。
12 /// </summary>
13 /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
14 protected override void Dispose(bool disposing)
15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }
22
23 Windows 窗体设计器生成的代码#region Windows 窗体设计器生成的代码
24
25 /**//// <summary>
26 /// 设计器支持所需的方法 - 不要
27 /// 使用代码编辑器修改此方法的内容。
28 /// </summary>
29 private void InitializeComponent()
30 {
31 this.label1 = new System.Windows.Forms.Label();
32 this.label2 = new System.Windows.Forms.Label();
33 this.textBoxName = new System.Windows.Forms.TextBox();
34 this.textBoxAddress = new System.Windows.Forms.TextBox();
35 this.textBoxAge = new System.Windows.Forms.TextBox();
36 this.textBoxOutput = new System.Windows.Forms.TextBox();
37 this.label4 = new System.Windows.Forms.Label();
38 this.label5 = new System.Windows.Forms.Label();
39 this.buttonOK = new System.Windows.Forms.Button();
40 this.buttonHelp = new System.Windows.Forms.Button();
41 this.checkBoxProgrammer = new System.Windows.Forms
【责任编辑: lanier】