Thread

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2009
Posts: 68
Reputation: gallian99 is an unknown quantity at this point 
Solved Threads: 0
gallian99 gallian99 is offline Offline
Junior Poster in Training

Thread

 
0
  #1
May 13th, 2009
Hi,

I've wrote a small application which browse a folder and rename the files within that foldrer. However if the folder more then 500 files then the app tends to take a while to process.

I somehow or the other needs to show some sort of text displaying "processing..." or show an animated image so that the user can see somethign happening. Otherwise one just feels the application has got stuck and is not responding

Can anyone help me with that. I've tried to put a label and updates its text the the proces starts but it doesn't work out, even tried invalidating the label control.

I've tried doing the same but still nothing happens. The text is displayed when the application completes the full task.

Thx
a
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 436
Reputation: JerryShaw is on a distinguished road 
Solved Threads: 72
JerryShaw JerryShaw is offline Offline
Posting Pro in Training

Re: Thread

 
0
  #2
May 13th, 2009
Place an Applicaiton.DoEvents(); inside of the loop so that the main thread has a chance to service its message queue and this should allow your label to update.

// Jerry
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 68
Reputation: gallian99 is an unknown quantity at this point 
Solved Threads: 0
gallian99 gallian99 is offline Offline
Junior Poster in Training

Re: Thread

 
0
  #3
May 13th, 2009
Thanks got that worked out. I had to make safe thread calls.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC