1/07/2014

C# Scroll label from left to right

Scroll label from left to right
Scroll label from left to right


private void timer1_Tick(object sender, EventArgs e)  
     {  
       if (lblScroll.Left >= Convert.ToInt32(this.ClientRectangle.Right))  
       {  
         lblScroll.Left = this.ClientRectangle.Left - lblScroll.Left;  
       }  
       else  
       {  
         lblScroll.Left += 4;  
       }  
     }  

No comments:

Post a Comment