我想在打开项目之前先检测网络是否是通的、是否可以连接到服务器;如果不通弹出提示框而同时系统本身的错误提示不显示;使用了一下命令;
If Network.Ping("61.**.**.**",300) Then '如果无法ping通***地址,试验时间为**毫秒
Else
e.Cancel = True '拒绝打开项目
e.HideSplashForm = True '关闭Foxtable的启动封面
MessageBox.Show("无法连接到服务器,请与管理员联系", "连接提示",MessageBoxButtons.Ok,MessageBoxIcon.Warning,0, Windows.forms.MessageBoxOptions.ServiceNotification) '弹出提示窗口
End If
但是如果我的服务器是禁ping的;我使用网页方式http://61.**.**.** 是可以打开服务器网页。我该怎么处理?