namespace WindowsFormsSqlConnectionClose { partial class Form1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows 窗体设计器生成的代码 /// /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(13, 22); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(97, 15); this.label1.TabIndex = 0; this.label1.Text = "数据库名称:"; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(117, 17); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(198, 25); this.textBox1.TabIndex = 1; // // button1 // this.button1.Location = new System.Drawing.Point(341, 14); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(116, 30); this.button1.TabIndex = 2; this.button1.Text = "连接数据库"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(16, 59); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(441, 30); this.button2.TabIndex = 3; this.button2.Text = "使用Close方法关闭连接并重新调用Open方法连接数据库"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Location = new System.Drawing.Point(16, 96); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(441, 30); this.button3.TabIndex = 4; this.button3.Text = "使用Dispose方法关闭连接并重新调用Open方法连接数据库"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // richTextBox1 // this.richTextBox1.Location = new System.Drawing.Point(20, 137); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(436, 120); this.richTextBox1.TabIndex = 5; this.richTextBox1.Text = ""; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(474, 270); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.textBox1); this.Controls.Add(this.label1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.RichTextBox richTextBox1; } }