1/07/2014

C# Scrolling a label from right to left

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


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

No comments:

Post a Comment