Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by (400 points)
Hi i'm using the free .net component and have a few question on more advanced stuff (well advanced to a VB newbie)

I have my program uploading/downloading, renaming and deleting files fine but have two question to enhance my application.

1) How do i get a status box to show what's happening. i.e. a box that will show the application logging into the server and sending commands as buttons are click with the reply from the server.

2) When uploading and downloading how to i get a progress bar to show that something is happening?


I'm using Visual Studio 2005, my project is in VB and i'm using edtFTPnet free


Thanks

4 Answers

0 votes
by (51.6k points)
edtFTPnet/Express features FTPStatusBar (see demo here). It starts at only $99 (soon to be increased to $149), so unless you're a hobby programmer, your company will probably find it cheaper to buy that instead of having you write your own.

If you do want to write your own, it's actually quite hard to make it work well, but the main thing you'll need from FTPConnection is the BytesTransferred event. You can do the status-bar updates in the event-handler. The rest is all to do with threading, which is really beyond the scope of these forums. If you do run into problems with the GUI locking up and cross-thread exceptions then you'll need to do some Googling.

- Hans (EnterpriseDT)
0 votes
by (400 points)
Well i was hoping to do it my self, but all this talk about threading etc scares me :)

Guess
0 votes
by (51.6k points)
While a transfer is in process you can't issue any other FTP commands, so it's not possible to obtain any additional information during this period.

- Hans (EnterpriseDT)
0 votes
by (400 points)
thanks, I'll just update on successful completion of the commands.

Categories

...