Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
C#
how to show and hide labels text using timer after static time


What I have tried:

how to show and hide labels text using timer after static time
Posted
Updated 16-Jul-16 9:18am
Comments
Richard Deeming 15-Jul-16 11:03am    
So you're not going to tell us what language you're using, or what UI framework you're using, or show us any code at all?

Then the only answer we can give you is, "by writing some code".

If you want a better answer, then click "Improve question" and update your question with a proper description of the problem.
ZurdoDev 15-Jul-16 11:08am    
Pretty easy to do. Where are you stuck?
Karthik_Mahalingam 15-Jul-16 23:43pm    
you have tagged c# and vb.net
working in parallel?

1 solution

VB.NET
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
    If label1.Visible = True Then
        label1.Visible = False
    Else
        label1.Visible = True
    End If
End Sub


Don't forget to start your timer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900