By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

How to use timer to continuously Ping

P: 1
Hello Guys please i'm working on my final year project so i'm developing a network tool that will continously ping and ip after some set of intervals, so when ever a network device is down it send and sms alert to the technician, here is what so far plss help

Expand|Select|Wrap|Line Numbers
  1. Dim Ip As String
  2.         Ip = TextBox2.Text
  3.         Dim a As String
  4.         a = "Device is Up and Runing"
  5.         Dim b As String
  6.         b = "Ping Request Time Out"
  7.         If My.Computer.Network.Ping(Ip) Then
  8.  
  9.             'MsgBox("Device is Up and Runing")
  10.             ListBox1.Items.Add(a)
  11.  
  12.  
  13.         Else
  14.  
  15.             'MsgBox("Ping request timed out.")
  16.              ListBox1.Items.Add(b)
Dec 12 '12 #1
Share this Question
Share on Google+
1 Reply


PsychoCoder
Expert Mod 100+
P: 465
Working with a Timer control is fairly straight forward, take a look at this for ideas
Dec 12 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.