| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: FTP Progress |
| bakertj53 timothy.baker2@ge.com From: Burlington, IA USA Posts: 1 Member Since: 08/25/05 |
posted August 25, 2005 4:06 PM When using a Get to retrieve a file when the ftp_progress fires I update a progress bar with e.position and e.length but these are alway -1. What am I doing wrong. Private Sub Ftp1_Progress(ByVal sender As Object, ByVal e As Dart.PowerTCP.SecureFtp.FtpProgressEventArgs) Handles Ftp1.Progress 'FtpProgressEventArgs) Try ProgBar.Minimum = 0 ProgBar.Maximum = e.Position ProgBar.Value = e.Length System.Diagnostics.Debug.WriteLine("Status: " + e.Status.ToString + " Pos: " + e.Position.ToString + " Len: " + e.Length.ToString + " TotalFiles: " + e.TotalFiles.ToString + " Current File: " + e.CurrentFile.ToString) Catch ex As Exception MsgBox("The following error was encountered in the Ftp1_Progress() Module " & ex.ToString) End End Try End Sub Here is the GET command code dir = Ftp1.GetDirectory() Ftp1.FileType = Dart.PowerTCP.SecureFtp.FileType.Image Ftp1.BlockSize = 1024 ProgBar.Value = 0 If Ftp1.Connected Then file = Ftp1.Get(ZipFileName, rs & "bin\" & ZipFileName) End If |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 25, 2005 4:09 PM Do you see the same problem when running our sample apps? The progress bar seems to work fine in the ListView app when I run it. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|