1
如何创建一个简单的ping到网站并获得在线或不在线?创建简单Ping
例:
var test = new ping()
try{
test.ping(www.google.com)
messagebox.show("your internet connection is ok");
}
catch
{
messagebox.show("you are not connected");
}
这是可能的吗?我在网上搜索过但没有发现任何东西
http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx – squiguy