http://community.csdn.net/Expert/topic/3553/3553732.xml?temp=.4749414
解决方案 »
- VS WINCE 编码问题 异常“PlatformNotSupportedException”
- c#窗体程序的问题
- 网站经常不能访问,是什么原因?急!!
- 如何得contextMenuStrip 选中的项
- vs2005菜鸟问题,大哥们快来抢分吧
- DownloadData方法下载文件,如何动态获得下载的数据流大小,因为我要做进度条~~谢谢
- C#如何打开一个PowerPoint空文件,并在幻灯片中插入图片和文字
- 算术运算中发生溢出或下溢
- 请各位大侠出手帮忙!!奇怪的问题,着急着呢!!!
- 把c#代码转换成vb.net代码?
- toolbarbutton 图像问题
- 我想数字化扫描到的位图? 主要是其中的曲线.
try
{
IPHostEntry hostip=Dns.Resolve(hostname);
IPAddress[] addrList=hostip.AddressList;
statusBar1.Text="本机IP地址:"+addrList[0];
}
catch(SocketException)
{
MessageBox.Show("IP address read error!");
}
Dns.HostName
可能我属性记不太清楚,你去查一下肯定有的