摘要:
private void txtPort_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar != '\b')//允许输入退格键 { if ((e.KeyChar < '0') || (e.KeyChar > '9'))//允许输入0-9数字 { e.Handled = true; } } ... 阅读全文
摘要:
NetworkInterface[] NetworkInterfaces = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface NetworkIntf in NetworkInterfaces) { IPInterfaceProperties IPInterfaceProperties = NetworkIntf.GetIPProperties(); UnicastIPAddressInformatio... 阅读全文