namespace SocketsUDP { 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.components = new System.ComponentModel.Container(); this.button1 = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.tbLocalIp = new System.Windows.Forms.TextBox(); this.tbRemoteIp = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.tbLocalPort = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.tbRemotePort = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(28, 135); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "发送"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(109, 137); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(171, 21); this.textBox1.TabIndex = 1; this.textBox1.Text = "16 32 48 64 80 96 112 128 "; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(109, 179); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(171, 21); this.textBox2.TabIndex = 2; // // timer1 // this.timer1.Interval = 1000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(26, 182); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(77, 12); this.label1.TabIndex = 3; this.label1.Text = "接收到的数据"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(26, 9); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(77, 12); this.label2.TabIndex = 4; this.label2.Text = "本地主机IP:\r\n"; // // tbLocalIp // this.tbLocalIp.Location = new System.Drawing.Point(100, 6); this.tbLocalIp.Name = "tbLocalIp"; this.tbLocalIp.Size = new System.Drawing.Size(87, 21); this.tbLocalIp.TabIndex = 5; this.tbLocalIp.Text = "192.168.1.4"; // // tbRemoteIp // this.tbRemoteIp.Location = new System.Drawing.Point(100, 33); this.tbRemoteIp.Name = "tbRemoteIp"; this.tbRemoteIp.Size = new System.Drawing.Size(87, 21); this.tbRemoteIp.TabIndex = 7; this.tbRemoteIp.Text = "192.168.1.3"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(26, 36); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(77, 12); this.label3.TabIndex = 6; this.label3.Text = "远程主机IP:\r\n"; // // tbLocalPort // this.tbLocalPort.Location = new System.Drawing.Point(230, 6); this.tbLocalPort.Name = "tbLocalPort"; this.tbLocalPort.Size = new System.Drawing.Size(50, 21); this.tbLocalPort.TabIndex = 8; this.tbLocalPort.Text = "2000"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(193, 9); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(41, 12); this.label4.TabIndex = 9; this.label4.Text = "端口:"; // // tbRemotePort // this.tbRemotePort.Location = new System.Drawing.Point(230, 33); this.tbRemotePort.Name = "tbRemotePort"; this.tbRemotePort.Size = new System.Drawing.Size(50, 21); this.tbRemotePort.TabIndex = 10; this.tbRemotePort.Text = "2000"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(193, 36); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(41, 12); this.label5.TabIndex = 11; this.label5.Text = "端口:"; // // button2 // this.button2.Location = new System.Drawing.Point(172, 76); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(108, 23); this.button2.TabIndex = 12; this.button2.Text = "初始化通讯连接"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Location = new System.Drawing.Point(28, 76); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(75, 23); this.button3.TabIndex = 13; this.button3.Text = "关闭通讯"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // button4 // this.button4.Location = new System.Drawing.Point(176, 216); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(75, 23); this.button4.TabIndex = 14; this.button4.Text = "循环收发"; this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.Add(this.button4); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.tbRemotePort); this.Controls.Add(this.label5); this.Controls.Add(this.tbLocalPort); this.Controls.Add(this.label4); this.Controls.Add(this.tbRemoteIp); this.Controls.Add(this.label3); this.Controls.Add(this.tbLocalIp); this.Controls.Add(this.label1); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Controls.Add(this.button1); this.Controls.Add(this.label2); this.Name = "Form1"; this.Text = "UDP通讯测试"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button button1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox tbLocalIp; private System.Windows.Forms.TextBox tbRemoteIp; private System.Windows.Forms.Label label3; private System.Windows.Forms.TextBox tbLocalPort; private System.Windows.Forms.Label label4; private System.Windows.Forms.TextBox tbRemotePort; private System.Windows.Forms.Label label5; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button4; } }