扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:阿虎 来源:天极开发 2007年11月11日
关键字:
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 ) ; } |
图06:【Visual C#实现Ping命令】项目的设计界面 |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者