Hello, just thought I'd release a scrolling label text function that I made.

Code: 
        void scrollText(ref Label lbl, string lblText, int maxCharDisplay)
        {
            string lblTextTotal = lblText + lblText;
            if (maxCharDisplay > (lblText.Length - 1)) maxCharDisplay = (lblText.Length - 1);
            if (lbl.Tag == null) lbl.Tag = 0;
            int curIndex = Convert.ToInt32(lbl.Tag.ToString());
            lbl.Text = lblTextTotal.Substring(curIndex, maxCharDisplay);
            curIndex++;
            if (curIndex > (lblText.Length - 1)) curIndex = 0;
            lbl.Tag = curIndex;
        }
If you want a label in your form to scroll some text..

Code: 
scrollText(ref Label1, "BETA--", 10);
put that inside of a timer, or whenever you want it to scroll just use that code above.
dcrew Reviewed by dcrew on . [C#] Scrolling Label Function Hello, just thought I'd release a scrolling label text function that I made. void scrollText(ref Label lbl, string lblText, int maxCharDisplay) { string lblTextTotal = lblText + lblText; if (maxCharDisplay > (lblText.Length - 1)) maxCharDisplay = (lblText.Length - 1); if (lbl.Tag == null) lbl.Tag = 0; int curIndex = Convert.ToInt32(lbl.Tag.ToString()); lbl.Text = lblTextTotal.Substring(curIndex, Rating: 5