1、首先是界面的设置,界面设置系统会自动在Designer.vb这个文件中记录下来 ,下面是该文件的代码:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Private Sub InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.BtnLink = New System.Windows.Forms.Button
Me.BtnSend = New System.Windows.Forms.Button
Me.LabService = New System.Windows.Forms.Label
Me.ListBoxClientContext = New System.Windows.Forms.ListBox
Me.StartService = New System.Windows.Forms.Button
Me.StatusStrip1 = New System.Windows.Forms.StatusStrip
Me.ToolStripLable1 = New System.Windows.Forms.ToolStripStatusLabel
Me.ToolStripSeviceStatus = New System.Windows.Forms.ToolStripStatusLabel
Me.StatusStrip1.SuspendLayout()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(25, 22)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(77, 12)
Me.Label1.TabIndex = 0
Me.Label1.Text = "服务器地址:"
'
'Label2
'
Me.Label2.AutoSize = True
Me.Label2.Location = New System.Drawing.Point(25, 69)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(41, 12)
Me.Label2.TabIndex = 1
Me.Label2.Text = "信息:"
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(115, 19)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(149, 21)
Me.TextBox1.TabIndex = 2
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(115, 69)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(149, 21)
Me.TextBox2.TabIndex = 3
'
'BtnLink
'
Me.BtnLink.Location = New System.Drawing.Point(27, 130)
Me.BtnLink.Name = "BtnLink"
Me.BtnLink.Size = New System.Drawing.Size(75, 23)
Me