1 namespace Test22 2 { 3 partial class Form1 4 { 5 /// <summary> 6 /// 必需的设计器变量。 7 /// </summary> 8 private ...
1 namespace Test22 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 #region Windows 窗体设计器生成的代码24 25 /// <summary>26 /// 设计器支持所需的方法 - 不要27 /// 使用代码编辑器修改此方法的内容。28 /// </summary>29 private void InitializeComponent()30 {31 this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();32 ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();33 this.SuspendLayout();34 // 35 // numericUpDown136 // 37 this.numericUpDown1.DecimalPlaces = 4;//属性里对应!!!!!38 this.numericUpDown1.Location = new System.Draget='_blank'>wing.Point(12, 12);39 this.numericUpDown1.Name = "numericUpDown1";40 this.numericUpDown1.Size = new System.Drawing.Size(120, 21);41 this.numericUpDown1.TabIndex = 0;42 // 43 // Form144 // 45 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);46 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;47 this.ClientSize = new System.Drawing.Size(153, 53);48 this.Controls.Add(this.numericUpDown1);49 this.Name = "Form1";50 this.Text = "Form1";51 this.Load += new System.EventHandler(this.Form1_Load);52 ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();53 this.ResumeLayout(false);54 55 }56 57 #endregion58 59 private System.Windows.Forms.NumericUpDown numericUpDown1;60 }61 }
原标题:控件属性和InitializeComponent()关系:
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。