Hey All,
I am new to VB.NET and to this forum so i apologise in advanced if i have posted this in the wrong section or if i do not use the correct terms.
I am creating a simple program to show if "Servers,switches...etc" are currently up by showing me a green box or down by showing me a red box.
I am trying to loop the following code below every 30 seconds. Problem is that there are several of these statements which i want to do the same.
Any help would be amaze please because im really struggling.
The following code:
Private Sub PictureBox11_BackColorChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox11.BackColorChanged
If My.Computer.Network.Ping("192.168.0.20", 1000) Then
PictureBox11.BackColor = Color.LimeGreen
Else
PictureBox11.BackColor = Color.Red
End If
End Sub
Thanks
Jamie
I am new to VB.NET and to this forum so i apologise in advanced if i have posted this in the wrong section or if i do not use the correct terms.
I am creating a simple program to show if "Servers,switches...etc" are currently up by showing me a green box or down by showing me a red box.
I am trying to loop the following code below every 30 seconds. Problem is that there are several of these statements which i want to do the same.
Any help would be amaze please because im really struggling.
The following code:
Private Sub PictureBox11_BackColorChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox11.BackColorChanged
If My.Computer.Network.Ping("192.168.0.20", 1000) Then
PictureBox11.BackColor = Color.LimeGreen
Else
PictureBox11.BackColor = Color.Red
End If
End Sub
Thanks
Jamie