Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

Use code from following source:
WinForm Extended[^]
 
Share this answer
 
Other solution will be use of timer as suggested earlier:
http://www.c-sharpcorner.com/blogs/6321/scrolling-title-in-windows-form.aspx[^]
 
Share this answer
 
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
 
Share this answer
 
Comments
Caleb Burke 2021 10-Dec-21 10:44am    
how would you do it without a loop?

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900