Form1.cs
上传用户:kenve1
上传日期:2008-04-28
资源大小:35k
文件大小:4k
源码类别:

ICQ/即时通讯

开发平台:

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 ChatClient
  8. {
  9. /// <summary>
  10. /// Summary description for Form1.
  11. /// </summary>
  12. public class ChatClientForm : System.Windows.Forms.Form
  13. {
  14. private System.Windows.Forms.TextBox chatin;
  15. private System.Windows.Forms.TextBox textBox1;
  16. private System.Windows.Forms.TextBox ChatOut;
  17. private System.Windows.Forms.StatusBar statusBar1;
  18. /// <summary>
  19. /// Required designer variable.
  20. /// </summary>
  21. private System.ComponentModel.Container components = null;
  22. public ChatClientForm()
  23. {
  24. //
  25. // Required for Windows Form Designer support
  26. //
  27. InitializeComponent();
  28. //
  29. // TODO: Add any constructor code after InitializeComponent call
  30. //
  31. }
  32. /// <summary>
  33. /// Clean up any resources being used.
  34. /// </summary>
  35. protected override void Dispose( bool disposing )
  36. {
  37. if( disposing )
  38. {
  39. if (components != null) 
  40. {
  41. components.Dispose();
  42. }
  43. }
  44. base.Dispose( disposing );
  45. }
  46. #region Windows Form Designer generated code
  47. /// <summary>
  48. /// Required method for Designer support - do not modify
  49. /// the contents of this method with the code editor.
  50. /// </summary>
  51. private void InitializeComponent()
  52. {
  53. this.chatin = new System.Windows.Forms.TextBox();
  54. this.textBox1 = new System.Windows.Forms.TextBox();
  55. this.ChatOut = new System.Windows.Forms.TextBox();
  56. this.statusBar1 = new System.Windows.Forms.StatusBar();
  57. this.SuspendLayout();
  58. // 
  59. // chatin
  60. // 
  61. this.chatin.Location = new System.Drawing.Point(16, 8);
  62. this.chatin.Multiline = true;
  63. this.chatin.Name = "chatin";
  64. this.chatin.ReadOnly = true;
  65. this.chatin.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
  66. this.chatin.Size = new System.Drawing.Size(360, 240);
  67. this.chatin.TabIndex = 0;
  68. this.chatin.Text = "";
  69. // 
  70. // textBox1
  71. // 
  72. this.textBox1.Location = new System.Drawing.Point(384, 8);
  73. this.textBox1.Multiline = true;
  74. this.textBox1.Name = "textBox1";
  75. this.textBox1.ReadOnly = true;
  76. this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
  77. this.textBox1.Size = new System.Drawing.Size(136, 240);
  78. this.textBox1.TabIndex = 1;
  79. this.textBox1.Text = "";
  80. // 
  81. // ChatOut
  82. // 
  83. this.ChatOut.Location = new System.Drawing.Point(16, 272);
  84. this.ChatOut.Name = "ChatOut";
  85. this.ChatOut.Size = new System.Drawing.Size(504, 20);
  86. this.ChatOut.TabIndex = 2;
  87. this.ChatOut.Text = "";
  88. // 
  89. // statusBar1
  90. // 
  91. this.statusBar1.Location = new System.Drawing.Point(0, 363);
  92. this.statusBar1.Name = "statusBar1";
  93. this.statusBar1.Size = new System.Drawing.Size(534, 16);
  94. this.statusBar1.SizingGrip = false;
  95. this.statusBar1.TabIndex = 3;
  96. this.statusBar1.Text = "Disconnected";
  97. // 
  98. // ChatClientForm
  99. // 
  100. this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  101. this.ClientSize = new System.Drawing.Size(534, 379);
  102. this.Controls.AddRange(new System.Windows.Forms.Control[] {
  103.   this.statusBar1,
  104.   this.ChatOut,
  105.   this.textBox1,
  106.   this.chatin});
  107. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
  108. this.Name = "ChatClientForm";
  109. this.Text = "ChatClient";
  110. this.ResumeLayout(false);
  111. }
  112. #endregion
  113. /// <summary>
  114. /// The main entry point for the application.
  115. /// </summary>
  116. [STAThread]
  117. static void Main() 
  118. {
  119. Application.Run(new Form1());
  120. }
  121. }
  122. }