Progress bar

H

Howard

I wrote a program that downloads rar files off my ftp server using TCP
client. I would like to display a progress bar that advances while
downloading the files. I tried that, but the program freezes while it's
downloading and the progress bar is not responding as well. I've read
articles on MSDN and google, but wasn't successful at doing it. Am I
missing something? could someone guide me through this?

I appreciate your help,
Howard
 
T

Tim Haughton

Howard said:
I wrote a program that downloads rar files off my ftp server using TCP
client. I would like to display a progress bar that advances while
downloading the files. I tried that, but the program freezes while it's
downloading and the progress bar is not responding as well.

Hi Howard, it sounds like your program is running on a single thread. If
you're new to developing software you might not have come across threading
before. There are plenty of places that explain threading better than I can
here, try this for starters...

http://www.codeguru.com/Csharp/Csharp/cs_misc/userinterface/article.php/c4255/#more

Any problems or difficulties, post back.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton
 
A

Atul

To get around this, you can do the FTP transfer in a separate thread and
notify the UI thread from time to time of the progress.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack ActiveX & .Net
Drop In Windows Explorer like Shell Browsing GUI controls for your app.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top