siewhuan
05-24-2006, 12:49 AM
Hi,
I want to show a text in the form then after that it will disappear then show the text again.
Does anyone knows how to do that?
Thanks yOU.
CForrester
05-24-2006, 03:16 AM
You mean you want the label to blink? Create a timer and set the label's .Visible property to true or false alternatingly.
siewhuan
05-29-2006, 12:56 AM
You mean you want the label to blink? Create a timer and set the label's .Visible property to true or false alternatingly.
Here is my ping program which will ping the I.P address for every 2 min. But I have a problem; I want the reply to show then disappear then show again. Does anyone knows how to do it??
Thanks YoU...
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Camera1.Tick
Dim objPingHost1 As New clsPing
Dim lngPingReply1 As Long
objPingHost1.Host = Trim(Me.Txthost1.Text)
''Me.txtLog.Text = "Trying to ping" & Trim(Me.Txthost1.Text) & "..."
lngPingReply1 = objPingHost1.Ping()
If (lngPingReply1 = objPingHost1.PING_ERROR) Then
lblstatus.Text &= vbCrLf & "Camera1 OFF" '& objPingHost1.GetLastError.Description
Else
lblstatus.Text &= vbCrLf & "Camera1 ON" '& lngPingReply1 & "msec"
End If
End Sub