可用来显示空值的时间选择控件4

#region 组件设计器生成的代码

///

1<summary>
2
3///  设计器支持所需的方法 - 不要使用代码编辑器 
4
5///  修改此方法的内容。 
6
7///  </summary>

private void InitializeComponent()

{

this .panel3 = new System.Windows.Forms.Panel();

this .panel1 = new System.Windows.Forms.Panel();

this .panel2 = new System.Windows.Forms.Panel();

this .lbSpace = new System.Windows.Forms.Label();

this .lbSep3 = new System.Windows.Forms.Label();

this .tbDay = new System.Windows.Forms.TextBox();

this .lbSep2 = new System.Windows.Forms.Label();

this .tbMonth = new System.Windows.Forms.TextBox();

this .lbSep1 = new System.Windows.Forms.Label();

this .tbYear = new System.Windows.Forms.TextBox();

this .label2 = new System.Windows.Forms.Label();

this .btnMain = new System.Windows.Forms.Button();

this .UpDown = new System.Windows.Forms.VScrollBar();

this .panel3.SuspendLayout();

this .panel1.SuspendLayout();

this .panel2.SuspendLayout();

this .SuspendLayout();

//

// panel3

//

this .panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;

this .panel3.Controls.Add( this .panel1);

this .panel3.Controls.Add( this .btnMain);

this .panel3.Controls.Add( this .UpDown);

this .panel3.Dock = System.Windows.Forms.DockStyle.Fill;

this .panel3.Location = new System.Drawing.Point(0, 0);

this .panel3.Name = "panel3";

this .panel3.Size = new System.Drawing.Size(104, 24);

this .panel3.TabIndex = 210;

//

// panel1

//

this .panel1.Controls.Add( this .panel2);

this .panel1.Controls.Add( this .label2);

this .panel1.Dock = System.Windows.Forms.DockStyle.Fill;

this .panel1.Location = new System.Drawing.Point(0, 0);

this .panel1.Name = "panel1";

this .panel1.Size = new System.Drawing.Size(84, 20);

this .panel1.TabIndex = 212;

//

// panel2

//

this .panel2.Controls.Add( this .lbSpace);

this .panel2.Controls.Add( this .lbSep3);

this .panel2.Controls.Add( this .tbDay);

this .panel2.Controls.Add( this .lbSep2);

this .panel2.Controls.Add( this .tbMonth);

this .panel2.Controls.Add( this .lbSep1);

this .panel2.Controls.Add( this .tbYear);

this .panel2.Dock = System.Windows.Forms.DockStyle.Fill;

this .panel2.Location = new System.Drawing.Point(0, 2);

this .panel2.Name = "panel2";

this .panel2.Size = new System.Drawing.Size(84, 18);

this .panel2.TabIndex = 207;

//

// lbSpace

//

this .lbSpace.BackColor = System.Drawing.SystemColors.Window;

this .lbSpace.Dock = System.Windows.Forms.DockStyle.Fill;

this .lbSpace.Location = new System.Drawing.Point(70, 0);

this .lbSpace.Name = "lbSpace";

this .lbSpace.Size = new System.Drawing.Size(14, 18);

this .lbSpace.TabIndex = 223;

this .lbSpace.TextAlign = System.Drawing.ContentAlignment.TopCenter;

this .lbSpace.Click += new System.EventHandler( this .lbSpace_Click);

this .lbSpace.EnabledChanged += new System.EventHandler( this .lbSep1_EnabledChanged);

//

// lbSep3

//

this .lbSep3.AutoSize = true ;

this .lbSep3.BackColor = System.Drawing.SystemColors.Window;

this .lbSep3.Dock = System.Windows.Forms.DockStyle.Left;

this .lbSep3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;

this .lbSep3.Location = new System.Drawing.Point(70, 0);

this .lbSep3.Name = "lbSep3";

this .lbSep3.Size = new System.Drawing.Size(0, 17);

this .lbSep3.TabIndex = 220;

this .lbSep3.EnabledChanged += new System.EventHandler( this .lbSep1_EnabledChanged);

//

// tbDay

//

this .tbDay.AutoSize = false ;

this .tbDay.BorderStyle = System.Windows.Forms.BorderStyle.None;

this .tbDay.Dock = System.Windows.Forms.DockStyle.Left;

this .tbDay.Location = new System.Drawing.Point(58, 0);

this .tbDay.Name = "tbDay";

this .tbDay.Size = new System.Drawing.Size(12, 18);

this .tbDay.TabIndex = 219;

this .tbDay.Text = "12";

this .tbDay.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;

this .tbDay.WordWrap = false ;

this .tbDay.KeyDown += new System.Windows.Forms.KeyEventHandler( this .tbMonth_KeyDown);

this .tbDay.KeyPress += new System.Windows.Forms.KeyPressEventHandler( this .tbDay_KeyPress);

//

// lbSep2

//

this .lbSep2.AutoSize = true ;

this .lbSep2.BackColor = System.Drawing.SystemColors.Window;

this .lbSep2.Dock = System.Windows.Forms.DockStyle.Left;

this .lbSep2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;

this .lbSep2.Location = new System.Drawing.Point(47, 0);

this .lbSep2.Name = "lbSep2";

this .lbSep2.Size = new System.Drawing.Size(11, 17);

this .lbSep2.TabIndex = 218;

this .lbSep2.Text = "-";

this .lbSep2.EnabledChanged += new System.EventHandler( this .lbSep1_EnabledChanged);

//

// tbMonth

//

this .tbMonth.AutoSize = false ;

this .tbMonth.BorderStyle = System.Windows.Forms.BorderStyle.None;

this .tbMonth.Dock = System.Windows.Forms.DockStyle.Left;

this .tbMonth.Location = new System.Drawing.Point(35, 0);

this .tbMonth.Name = "tbMonth";

this .tbMonth.Size = new System.Drawing.Size(12, 18);

this .tbMonth.TabIndex = 217;

this .tbMonth.Text = "12";

this .tbMonth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;

this .tbMonth.WordWrap = false ;

this .tbMonth.KeyDown += new System.Windows.Forms.KeyEventHandler( this .tbMonth_KeyDown);

this .tbMonth.KeyPress += new System.Windows.Forms.KeyPressEventHandler( this .tbMonth_KeyPress);

this .tbMonth.Leave += new System.EventHandler( this .tbMonth_Leave);

this .tbMonth.Enter += new System.EventHandler( this .tbMonth_Enter);

//

// lbSep1

//

this .lbSep1.AutoSize = true ;

<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-ali

Published At
Categories with Web编程
Tagged with
comments powered by Disqus