2017-02-23 68 views

ответ

-1
Dim Result As Net.NetworkInformation.PingReply 
Dim SendPing As New Net.NetworkInformation.Ping 
Dim ResponseTime As Long 
Try 
    Result = SendPing.Send("216.58.194.51") 
    ResponseTime = Result.RoundtripTime 
     If Result.Status = Net.NetworkInformation.IPStatus.Success Then 
      MsgBox(ResponseTime.ToString) 'ResponseTime is response time 
     Else 
    End If 
Catch ex As Exception 
    MsgBox("No response") 
End Try 

 Смежные вопросы

  • Нет связанных вопросов^_^