Click here to Skip to main content
11,410,750 members (63,458 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C# C#4.0 , +
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 19: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
0 Sergey Alexandrovich Kryukov 8,920
1 OriginalGriff 6,918
2 Maciej Los 3,390
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2015
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