Click here to Skip to main content
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 Marcin Kozub 265
1 Richard MacCutchan 239
2 OriginalGriff 208
3 Sergey Alexandrovich Kryukov 185
4 Praneet Nadkar 167
0 OriginalGriff 7,913
1 Sergey Alexandrovich Kryukov 7,232
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,865


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
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