Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.4k views
in .NET FTP by (1.2k points)
Is it possible to override the ftpstatusbar to feed it information from multiple files at the same time? Meaning, if I have multiple files downloading at the same time, can I have the ftpstatus bar display information as a sum or total of all the downloads?

4 Answers

0 votes
by (162k points)
No currently it is one file at a time.
0 votes
by (1.2k points)
Is is possible to set the connection for a ftpstatus bar control from another thread?
0 votes
by (1.2k points)
This might be a little unorthodox, but I have two status bars in my form. One for Uploads the other for Downloads. I have created two connection controls and set one for the uploading and the other for the downloading. The form does seem to have a difficult time moving through the connections, but I finally got it to compile. The downloading worked great, but when I was uploading the upload speed was correct and the bytes transferred was correct; however, the time remaining, the percentage, and the progress bar were off. While the file only took around 10 minutes to upload, the time, percent, and progress bar displayed or indicated over an hour to completion time. The file did cancel as soon as it was uploaded within the 10 minutes.

Any thoughts as to why that might be happening?
0 votes
by (51.6k points)
Fundamentally there shouldn't be a problem having two progress-bars on a form, nor with having two connections. In practice, since it's not something we've tested very much, there may well be some problems.

One thing that springs to mind is related to the "inter-awareness" of the controls. As you've probably noticed, the FTP controls auto-detect when there's a new connection dropped on the form. In other words, when you drop a new connection on a form that already has some FTP controls on it, then the Connection property of those controls is set to the new connection. In order to make sure that each control is connected to the appropriate connection, I suggest putting code in the constructor to explicitly set the Connection property of each control as intended. That will override any confusion that might've arisen as a result of the auto-detection.

I can't think of anything else at the moment. It'd be useful if you could send us a little test application that shows the problem occurring. Once we see it happening it should be fairly easy to work out what's wrong.

- Hans (EnterpriseDT)

Categories

...