using System.Net ; using System.Net.Sockets ; |
private void InitializeComponent ( ) { this.textBox1 = new System.Windows.Forms.TextBox ( ) ; this.label1 = new System.Windows.Forms.Label ( ) ; this.listBox1 = new System.Windows.Forms.ListBox ( ) ; this.button1 = new System.Windows.Forms.Button ( ) ; this.SuspendLayout ( ) ; this.textBox1.Location = new System.Drawing.Point ( 116 , 14 ) ; this.textBox1.Name = "textBox1" ; this.textBox1.Size = new System.Drawing.Size ( 148 , 21 ) ; this.textBox1.TabIndex = 0 ; this.textBox1.Text = "" ; this.textBox1.TextChanged += new System.EventHandler ( this.textBox1_TextChanged ) ; this.label1.Location = new System.Drawing.Point ( 12 , 14 ) ; this.label1.Name = "label1" ; this.label1.TabIndex = 1 ; this.label1.Text = "请输入主机名:" ; this.listBox1.BackColor = System.Drawing.SystemColors.WindowText ; this.listBox1.ForeColor = System.Drawing.SystemColors.Window ; this.listBox1.ItemHeight = 12 ; this.listBox1.Location = new System.Drawing.Point ( 6 , 42 ) ; this.listBox1.Name = "listBox1" ; this.listBox1.Size = new System.Drawing.Size ( 400 , 280 ) ; this.listBox1.TabIndex = 2 ; this.button1.Location = new System.Drawing.Point ( 274 , 12 ) ; this.button1.Name = "button1" ; this.button1.TabIndex = 3 ; this.button1.Text = "Ping" ; this.button1.Click += new System.EventHandler ( this.button1_Click ) ; this.AutoScaleBaseSize = new System.Drawing.Size ( 6 , 14 ) ; this.ClientSize = new System.Drawing.Size ( 410 , 333 ) ; this.Controls.AddRange ( new System.Windows.Forms.Control[ ] { this.button1 , this.listBox1 , this.label1 , this.textBox1 } ) ; this.MaximizeBox = false ; this.Name = "Form1" ; this.Text = "Visual C#实现Ping" ; this.ResumeLayout ( false ) ; } |
|
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |