示例#1
0
            private void InitializeComponent()
            {
                var button1 = new System.Windows.Forms.Button();

                this.SuspendLayout();
                //
                // button1
                //
                button1.Location = new System.Drawing.Point(112, 65);
                button1.Name     = "button1";
                button1.Size     = new System.Drawing.Size(75, 23);
                button1.TabIndex = 0;
                button1.Text     = "button1";
                button1.UseVisualStyleBackColor = true;
                button1.Visible = true;
                button1.Enabled = true;
                //
                // Form1
                //
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
                this.ClientSize          = new System.Drawing.Size(284, 261);
                this.Controls.Add(button1);
                this.Name = "Form1";
                this.Text = "Form1";
                this.ResumeLayout(false);
            }
示例#2
0
			private void InitializeComponent()
			{
				var button1 = new System.Windows.Forms.Button();
				this.SuspendLayout();
				// 
				// button1
				// 
				button1.Location = new System.Drawing.Point(112, 65);
				button1.Name = "button1";
				button1.Size = new System.Drawing.Size(75, 23);
				button1.TabIndex = 0;
				button1.Text = "button1";
				button1.UseVisualStyleBackColor = true;
				button1.Visible = true;
				button1.Enabled = true;
				// 
				// Form1
				// 
				this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
				this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
				this.ClientSize = new System.Drawing.Size(284, 261);
				this.Controls.Add(button1);
				this.Name = "Form1";
				this.Text = "Form1";
				this.ResumeLayout(false);
			}