Results 1 to 1 of 1
-
15th Sep 2012, 10:55 AM #1OPBannedWebsite's:
dcrewposter.com z51.co.uk[C#] Scrolling Label Function
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; }
Code:scrollText(ref Label1, "BETA--", 10);
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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
scrolling backround.
By AJ Blacklisted in forum IP.BoardReplies: 12Last Post: 8th Jun 2012, 11:22 AM -
Need scrolling updates/latest threads mod for vB
By click2down in forum Web Development AreaReplies: 7Last Post: 3rd Nov 2011, 03:38 PM -
jQuery Infinite Scrolling
By Kedzi in forum Web Development AreaReplies: 8Last Post: 23rd Sep 2011, 10:41 PM -
[Selling] Scrolling Ads $1 a Month
By SᴩiDᴇЯ in forum Completed TransactionsReplies: 2Last Post: 26th Mar 2010, 05:13 PM -
[Selling] Scrolling Banner on all pages
By SᴩiDᴇЯ in forum Completed TransactionsReplies: 0Last Post: 23rd Mar 2010, 01:48 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...