Click here to Skip to main content
12,942,930 members (77,871 online)
Rate this:
 
Please Sign up or sign in to vote.
I've developed a Windows Form application. I need to scroll the text in Title bar. Where title of the form Scrolls from right to left.. I don't know how to start?? Please let me know Where can I get started..????
- THANKS
Posted 23-Jan-13 18:49pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

private void StartScroll()
{
System.Text.StringBuilder sb = new System.Text.StringBuilder(textBox1.Text + " ");

while (true)
{
char ch = sb[sb.Length - 1];
sb.Remove(sb.Length - 1, 1);
sb.Insert(0, ch);
label1.Text = sb.ToString();
label1.Refresh();
System.Threading.Thread.Sleep(100);
}
}

you will have to use timers in winforms to implement scrolling
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Use code from following source:
WinForm Extended[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Other solution will be use of timer as suggested earlier:
http://www.c-sharpcorner.com/blogs/6321/scrolling-title-in-windows-form.aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,633
CHill60 2,880
Maciej Los 2,268
Jochen Arndt 1,900
ppolymorphe 1,755


Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100