Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

I wanna a label to have running text like

Initializing.
Initializing..
Initializing...

If you open adobe photo shop, one small window is suddenly open. In that you can saw the running text Initializing... Reading Fonts.. like that. How to code for Running text in win form?
Posted

Use a thread to update the contents of a Label control. When initializtion is completed, abort the thread.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 3-Jun-11 23:48pm    
Simple working idea. My 5. Detail include Invoke/BeginInvoke...
--SA
Use a splash screen.

For every task completed, update the text.
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 3-Jun-11 7:18am    
where can i get splash screen!.
Anshul R 3-Jun-11 7:42am    
Check these articles :

http://www.codeproject.com/KB/cs/prettygoodsplashscreen.aspx
http://www.codeproject.com/KB/cs/apploadingarticle.aspx
Sagotharan Jagadeeswaran 4-Jun-11 4:22am    
thank u!
After each process completed, display your message in label text and use Application.DoEvents()
VB
' do something
Label1.Text = "process one completed"
Application.DoEvents()

' do something
Label1.Text = "process two completed"
Application.DoEvents()
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 3-Jun-11 7:20am    
I cont get?. is my code is correct?.
private void button1_Click_1(object sender, EventArgs e)
{
for (int j = 1; j <= 3; j++)
{
label1.Text = "Please Wait.";
Application.DoEvents();
label1.Text = "Please Wait..";
Application.DoEvents();
label1.Text = "Please Wait...";
Application.DoEvents();
}
}

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