Page 1 of 1

OnXferProgress Method

PostPosted: Tue Nov 29, 2011 12:05 am
by bbaker
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

Re: OnXferProgress Method

PostPosted: Mon Mar 30, 2015 6:42 am
by shamonde
When running visual basic 6 in debug mode with the SDK, the module runs, below is a snippet of the code: