Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > showing a text then disappear then show again.


Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2006, 12:49 AM
siewhuan siewhuan is offline
Newcomer
 
Join Date: May 2006
Posts: 9
Default showing a text then disappear then show again.


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.
Reply With Quote
  #2  
Old 05-24-2006, 03:16 AM
CForrester CForrester is offline
Regular
 
Join Date: Jun 2005
Location: Montreal, Quebec
Posts: 96
Default

You mean you want the label to blink? Create a timer and set the label's .Visible property to true or false alternatingly.
Reply With Quote
  #3  
Old 05-29-2006, 12:56 AM
siewhuan siewhuan is offline
Newcomer
 
Join Date: May 2006
Posts: 9
Default

Quote:
Originally Posted by CForrester
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->