OnXferProgress Method

General question and discussion.

OnXferProgress Method

Postby bbaker » Tue Nov 29, 2011 12:05 am

I am trying to add TurboFTP SDK to a VB .net app.

This is the code I am using to update a progress bar
Private Sub tbFtp_OnXferProgress32(ByVal lBytes As Long)
Dim steps As Integer
Dim percent As Double
percent = lBytes / m_lngFileSize
steps = percent * 100
Dialog1.SetProgress(steps)

End Sub

Nothing happens....

I also tried this to test the method, but it never triggers the messagebox

Private Sub tbFtp_OnXferProgress32(ByVal lBytes As Long)
MsgBox("UPDATE")

End Sub


Does anybody have any sample code?

THANKS
bbaker
 
Posts: 1
Joined: Mon Nov 28, 2011 11:59 pm

Re: OnXferProgress Method

Postby shamonde » Mon Mar 30, 2015 6:42 am

When running visual basic 6 in debug mode with the SDK, the module runs, below is a snippet of the code:
shamonde
 
Posts: 1
Joined: Mon Mar 30, 2015 6:28 am


Return to Using TurboFTP SDK

Who is online

Users browsing this forum: No registered users and 1 guest

cron