摘要: private void txtPort_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar != '\b')//允许输入退格键 { if ((e.KeyChar < '0') || (e.KeyChar > '9'))//允许输入0-9数字 { e.Handled = true; } } ... 阅读全文
posted @ 2012-07-04 20:31 zyswtwang 阅读(360) 评论(0) 推荐(0) 编辑
摘要: NetworkInterface[] NetworkInterfaces = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface NetworkIntf in NetworkInterfaces) { IPInterfaceProperties IPInterfaceProperties = NetworkIntf.GetIPProperties(); UnicastIPAddressInformatio... 阅读全文
posted @ 2012-07-04 16:30 zyswtwang 阅读(6524) 评论(0) 推荐(2) 编辑