Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->编程语言 ->ASP.NET ->正文

RadioBox、CheckBox和Validating事件的相关处理

来源:Linuxdby.com 作者:Webmaster 时间:2007-06-04 点击: [收藏] [投稿]

[示例出处]:本示例来自《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.CheckBox();
 42            this.groupBoxSex = new System.Windows.Forms.GroupBox();
 43            this.radioButtonMale = new System.Windows.Forms.RadioButton();
 44            this.radioButtonFemale = new System.Windows.Forms.RadioButton();
 45            this.groupBoxSex.SuspendLayout();
 46            this.SuspendLayout();
 47            //
 48            // label1
 49            //
 50            this.label1.AutoSize = true;
 51            this.label1.Location = new System.Drawing.Point(26, 27);

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:c#远程获取网页内容   下一篇:C# GridView 排序及分页

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号