Form1.cs
Upload User: chinafred
Upload Date: 2007-08-14
Package Size: 10127k
Code Size: 3k
Category:

ADO-ODBC

Development Platform:

C#

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using System.Data;
  7. namespace ch1_1
  8. {
  9. /// <summary>
  10. /// Form1 的摘要说明。
  11. /// </summary>
  12. public class Form1 : System.Windows.Forms.Form
  13. {
  14. private System.Windows.Forms.Label label1;
  15. private System.Windows.Forms.LinkLabel linkLabel1;
  16. /// <summary>
  17. /// 必需的设计器变量。
  18. /// </summary>
  19. private System.ComponentModel.Container components = null;
  20. public Form1()
  21. {
  22. //
  23. // Windows 窗体设计器支持所必需的
  24. //
  25. InitializeComponent();
  26. //
  27. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  28. //
  29. }
  30. /// <summary>
  31. /// 清理所有正在使用的资源。
  32. /// </summary>
  33. protected override void Dispose( bool disposing )
  34. {
  35. if( disposing )
  36. {
  37. if (components != null) 
  38. {
  39. components.Dispose();
  40. }
  41. }
  42. base.Dispose( disposing );
  43. }
  44. #region Windows Form Designer generated code
  45. /// <summary>
  46. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  47. /// 此方法的内容。
  48. /// </summary>
  49. private void InitializeComponent()
  50. {
  51. this.label1 = new System.Windows.Forms.Label();
  52. this.linkLabel1 = new System.Windows.Forms.LinkLabel();
  53. this.SuspendLayout();
  54. // 
  55. // label1
  56. // 
  57. this.label1.Location = new System.Drawing.Point(40, 96);
  58. this.label1.Name = "label1";
  59. this.label1.Size = new System.Drawing.Size(208, 16);
  60. this.label1.TabIndex = 0;
  61. this.label1.Text = "欢迎进入Visual Studio.NET的世界";
  62. // 
  63. // linkLabel1
  64. // 
  65. this.linkLabel1.AccessibleDescription = "http://www.163.com";
  66. this.linkLabel1.AccessibleName = "http://www.163.com";
  67. this.linkLabel1.Font = new System.Drawing.Font("宋体", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  68. this.linkLabel1.Location = new System.Drawing.Point(48, 128);
  69. this.linkLabel1.Name = "linkLabel1";
  70. this.linkLabel1.Size = new System.Drawing.Size(192, 40);
  71. this.linkLabel1.TabIndex = 1;
  72. this.linkLabel1.TabStop = true;
  73. this.linkLabel1.Text = "hzdq";
  74. // 
  75. // Form1
  76. // 
  77. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  78. this.ClientSize = new System.Drawing.Size(292, 273);
  79. this.Controls.Add(this.linkLabel1);
  80. this.Controls.Add(this.label1);
  81. this.Name = "Form1";
  82. this.Text = "第一个窗体";
  83. this.ResumeLayout(false);
  84. }
  85. #endregion
  86. /// <summary>
  87. /// 应用程序的主入口点。
  88. /// </summary>
  89. [STAThread]
  90. static void Main() 
  91. {
  92. Application.Run(new Form1());
  93. }
  94. }
  95. }