您的位置:首页 > 编程语言

VS 2005设计器自动生成的界面代码,贴在这里自己做参考.

2007-06-14 08:42 731 查看
这段代码只是为了自己方便手写界面做参考.


namespace WindowsApplication1




...{


partial class Form1




...{




/**//// <summary>


/// 必需的设计器变量。


/// </summary>


private System.ComponentModel.IContainer components = null;






/**//// <summary>


/// 清理所有正在使用的资源。


/// </summary>


/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>


protected override void Dispose(bool disposing)




...{


if (disposing && (components != null))




...{


components.Dispose();


}


base.Dispose(disposing);


}






Windows 窗体设计器生成的代码#region Windows 窗体设计器生成的代码






/**//// <summary>


/// 设计器支持所需的方法 - 不要


/// 使用代码编辑器修改此方法的内容。


/// </summary>


private void InitializeComponent()




...{


this.groupBox1 = new System.Windows.Forms.GroupBox();


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


this.checkBox1 = new System.Windows.Forms.CheckBox();


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


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


this.checkBox2 = new System.Windows.Forms.CheckBox();


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


this.statusStrip1 = new System.Windows.Forms.StatusStrip();


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


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


this.listView1 = new System.Windows.Forms.ListView();


this.groupBox1.SuspendLayout();


this.SuspendLayout();


//


// groupBox1


//


this.groupBox1.Controls.Add(this.label1);


this.groupBox1.Controls.Add(this.textBox1);


this.groupBox1.Controls.Add(this.checkBox1);


this.groupBox1.Controls.Add(this.button1);


this.groupBox1.Location = new System.Drawing.Point(12, 12);


this.groupBox1.Name = "groupBox1";


this.groupBox1.Size = new System.Drawing.Size(642, 190);


this.groupBox1.TabIndex = 0;


this.groupBox1.TabStop = false;


this.groupBox1.Text = "groupBox1";


//


// button1


//


this.button1.Location = new System.Drawing.Point(182, 35);


this.button1.Name = "button1";


this.button1.Size = new System.Drawing.Size(75, 23);


this.button1.TabIndex = 0;


this.button1.Text = "button1";


this.button1.UseVisualStyleBackColor = true;


this.button1.Click += new System.EventHandler(this.button1_Click);


//


// checkBox1


//


this.checkBox1.AutoSize = true;


this.checkBox1.Location = new System.Drawing.Point(98, 39);


this.checkBox1.Name = "checkBox1";


this.checkBox1.Size = new System.Drawing.Size(78, 16);


this.checkBox1.TabIndex = 1;


this.checkBox1.Text = "checkBox1";


this.checkBox1.UseVisualStyleBackColor = true;


//


// textBox1


//


this.textBox1.Location = new System.Drawing.Point(6, 35);


this.textBox1.Name = "textBox1";


this.textBox1.Size = new System.Drawing.Size(86, 21);


this.textBox1.TabIndex = 2;


//


// button2


//


this.button2.Location = new System.Drawing.Point(194, 217);


this.button2.Name = "button2";


this.button2.Size = new System.Drawing.Size(75, 23);


this.button2.TabIndex = 1;


this.button2.Text = "button2";


this.button2.UseVisualStyleBackColor = true;


//


// checkBox2


//


this.checkBox2.AutoSize = true;


this.checkBox2.Location = new System.Drawing.Point(110, 223);


this.checkBox2.Name = "checkBox2";


this.checkBox2.Size = new System.Drawing.Size(78, 16);


this.checkBox2.TabIndex = 2;


this.checkBox2.Text = "checkBox2";


this.checkBox2.UseVisualStyleBackColor = true;


//


// textBox2


//


this.textBox2.Location = new System.Drawing.Point(18, 218);


this.textBox2.Name = "textBox2";


this.textBox2.Size = new System.Drawing.Size(86, 21);


this.textBox2.TabIndex = 3;


this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);


//


// statusStrip1


//


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


this.statusStrip1.Name = "statusStrip1";


this.statusStrip1.Size = new System.Drawing.Size(666, 22);


this.statusStrip1.TabIndex = 4;


this.statusStrip1.Text = "statusStrip1";


//


// label1


//


this.label1.AutoSize = true;


this.label1.Location = new System.Drawing.Point(284, 40);


this.label1.Name = "label1";


this.label1.Size = new System.Drawing.Size(41, 12);


this.label1.TabIndex = 5;


this.label1.Text = "label1";


//


// label2


//


this.label2.AutoSize = true;


this.label2.Location = new System.Drawing.Point(296, 222);


this.label2.Name = "label2";


this.label2.Size = new System.Drawing.Size(41, 12);


this.label2.TabIndex = 3;


this.label2.Text = "label2";


//


// listView1


//


this.listView1.Location = new System.Drawing.Point(18, 274);


this.listView1.Name = "listView1";


this.listView1.Size = new System.Drawing.Size(319, 97);


this.listView1.TabIndex = 5;


this.listView1.UseCompatibleStateImageBehavior = false;


//


// Form1


//


this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);


this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;


this.ClientSize = new System.Drawing.Size(666, 439);


this.Controls.Add(this.listView1);


this.Controls.Add(this.statusStrip1);


this.Controls.Add(this.label2);


this.Controls.Add(this.textBox2);


this.Controls.Add(this.checkBox2);


this.Controls.Add(this.button2);


this.Controls.Add(this.groupBox1);


this.Name = "Form1";


this.Text = "Form1";


this.groupBox1.ResumeLayout(false);


this.groupBox1.PerformLayout();


this.ResumeLayout(false);


this.PerformLayout();




}




#endregion




private System.Windows.Forms.GroupBox groupBox1;


private System.Windows.Forms.TextBox textBox1;


private System.Windows.Forms.CheckBox checkBox1;


private System.Windows.Forms.Button button1;


private System.Windows.Forms.Button button2;


private System.Windows.Forms.CheckBox checkBox2;


private System.Windows.Forms.TextBox textBox2;


private System.Windows.Forms.StatusStrip statusStrip1;


private System.Windows.Forms.Label label1;


private System.Windows.Forms.Label label2;


private System.Windows.Forms.ListView listView1;


}


}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐