分割 IP 地址:
string ipAddress = “192.168.2.168”; string[] sArray = ipAddress.Split(new char[] { '.' }); _box1.Text = sArray[0]; // 192 _box2.Text = sArray[1]; // 168 _box3.Text = sArray[2]; // 2 _box4.Text = sArray[3]; // 168
原文地址:http://blog.csdn.net/taoerit/article/details/42523259