Form1.Designer.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. namespace WindowsFormsSqlConnectionClose
  2. {
  3. partial class Form1
  4. {
  5. /// <summary>
  6. /// 必需的设计器变量。
  7. /// </summary>
  8. private System.ComponentModel.IContainer components = null;
  9. /// <summary>
  10. /// 清理所有正在使用的资源。
  11. /// </summary>
  12. /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
  13. protected override void Dispose(bool disposing)
  14. {
  15. if (disposing && (components != null))
  16. {
  17. components.Dispose();
  18. }
  19. base.Dispose(disposing);
  20. }
  21. #region Windows 窗体设计器生成的代码
  22. /// <summary>
  23. /// 设计器支持所需的方法 - 不要修改
  24. /// 使用代码编辑器修改此方法的内容。
  25. /// </summary>
  26. private void InitializeComponent()
  27. {
  28. this.label1 = new System.Windows.Forms.Label();
  29. this.textBox1 = new System.Windows.Forms.TextBox();
  30. this.button1 = new System.Windows.Forms.Button();
  31. this.button2 = new System.Windows.Forms.Button();
  32. this.button3 = new System.Windows.Forms.Button();
  33. this.richTextBox1 = new System.Windows.Forms.RichTextBox();
  34. this.SuspendLayout();
  35. //
  36. // label1
  37. //
  38. this.label1.AutoSize = true;
  39. this.label1.Location = new System.Drawing.Point(13, 22);
  40. this.label1.Name = "label1";
  41. this.label1.Size = new System.Drawing.Size(97, 15);
  42. this.label1.TabIndex = 0;
  43. this.label1.Text = "数据库名称:";
  44. //
  45. // textBox1
  46. //
  47. this.textBox1.Location = new System.Drawing.Point(117, 17);
  48. this.textBox1.Name = "textBox1";
  49. this.textBox1.Size = new System.Drawing.Size(198, 25);
  50. this.textBox1.TabIndex = 1;
  51. //
  52. // button1
  53. //
  54. this.button1.Location = new System.Drawing.Point(341, 14);
  55. this.button1.Name = "button1";
  56. this.button1.Size = new System.Drawing.Size(116, 30);
  57. this.button1.TabIndex = 2;
  58. this.button1.Text = "连接数据库";
  59. this.button1.UseVisualStyleBackColor = true;
  60. this.button1.Click += new System.EventHandler(this.button1_Click);
  61. //
  62. // button2
  63. //
  64. this.button2.Location = new System.Drawing.Point(16, 59);
  65. this.button2.Name = "button2";
  66. this.button2.Size = new System.Drawing.Size(441, 30);
  67. this.button2.TabIndex = 3;
  68. this.button2.Text = "使用Close方法关闭连接并重新调用Open方法连接数据库";
  69. this.button2.UseVisualStyleBackColor = true;
  70. this.button2.Click += new System.EventHandler(this.button2_Click);
  71. //
  72. // button3
  73. //
  74. this.button3.Location = new System.Drawing.Point(16, 96);
  75. this.button3.Name = "button3";
  76. this.button3.Size = new System.Drawing.Size(441, 30);
  77. this.button3.TabIndex = 4;
  78. this.button3.Text = "使用Dispose方法关闭连接并重新调用Open方法连接数据库";
  79. this.button3.UseVisualStyleBackColor = true;
  80. this.button3.Click += new System.EventHandler(this.button3_Click);
  81. //
  82. // richTextBox1
  83. //
  84. this.richTextBox1.Location = new System.Drawing.Point(20, 137);
  85. this.richTextBox1.Name = "richTextBox1";
  86. this.richTextBox1.Size = new System.Drawing.Size(436, 120);
  87. this.richTextBox1.TabIndex = 5;
  88. this.richTextBox1.Text = "";
  89. //
  90. // Form1
  91. //
  92. this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
  93. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  94. this.ClientSize = new System.Drawing.Size(474, 270);
  95. this.Controls.Add(this.richTextBox1);
  96. this.Controls.Add(this.button3);
  97. this.Controls.Add(this.button2);
  98. this.Controls.Add(this.button1);
  99. this.Controls.Add(this.textBox1);
  100. this.Controls.Add(this.label1);
  101. this.Name = "Form1";
  102. this.Text = "Form1";
  103. this.ResumeLayout(false);
  104. this.PerformLayout();
  105. }
  106. #endregion
  107. private System.Windows.Forms.Label label1;
  108. private System.Windows.Forms.TextBox textBox1;
  109. private System.Windows.Forms.Button button1;
  110. private System.Windows.Forms.Button button2;
  111. private System.Windows.Forms.Button button3;
  112. private System.Windows.Forms.RichTextBox richTextBox1;
  113. }
  114. }