.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Windows Form Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Code to flash a lable in windows application using timer

Posted By:Karthikeyan Anbarasan       Posted Date: January 07, 2011    Points: 15    Category: Windows Form Controls    URL: http://www.dotnetspark.com  

This code show how to flash a lable in windows application using timer
 

Private Sub frmBlinkScreen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.lblLablel.Text = "This is the text to blink!!!!"
        CallTimer()
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Me.lblLablel.Visible = Not Me.lblLablel.Visible
    End Sub

    Public Sub CallTimer()
        Timer1.Start()
        Timer1.Interval = 500
    End Sub

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend