A good FTP client that needs some improvement...

JumpyNET

Centurion
Joined
Apr 4, 2005
Messages
196
I have this simple FTP client program. Allmost all the code is from msdn. It's very easy to use and works quite well.

I myself would like to use it to upload several files to different FTP servers simultaneously. Now it only uploads one at a time. Any ideas how this could be done?

Also when the program is uploading it seems like it's stuck (can't tamper with the UI or do anything else). I would like to run every upload process in a separate thread (if that's the right word). So that the uploads would run on the background. I think solving this second problem would solve the first problem as well.

I'm sure that with a little help from you guys we could make this program a very useful example for all the xtremedotnettalk users. :)
I hope you can help!

The program is made with VB 2005 Express!!
 

Attachments

Last edited:
Every time you start a new upload, just start it in a new thread.

Visual Basic:
Dim UploadThread As New Thread(AddressOf UploadFile)
UploadThread.Start()

This should solve both of your problems. You might want to use delegates or something, depending on how it is built to be able to specify the file to upload, and where to upload it to.

I don't have time to mess with the code otherwise I would download it and edit it for you.
 
Back
Top