1/07/2014

C# Scrolling label's text to the left

Scrolling label's text to the left
Scrolling label's text to the left


private void timer1_Tick(object sender, EventArgs e)  
     {  
       lblScroll.Text = lblScroll.Text.Substring(1, lblScroll.Text.Length - 1) + lblScroll.Text.Substring(0, 1);  
     }  
 private void ScrollText_Load(object sender, EventArgs e)  
     {  
       lblScroll.Text = "   Text is moving   ";  
     }  

No comments:

Post a Comment