Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.9k views
in .NET FTP by
hi,
when this event is raised my app. freeze , download continue but my application dousn't responde. when download finish my app response again..

how i can solve this problem ?

thanks

Friend WithEvents EDT As New EnterpriseDT.Net.Ftp.FTPClient()


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
mySize = EDT.Size(strRemoteFullName)
EDT.Get(strLocalFullName, strRemoteFullName)


Private Sub FileTransfer_OnProgress(ByVal eventSender As System.Object, ByVal eventArgs As EnterpriseDT.Net.Ftp.BytesTransferredEventArgs) Handles EDT.BytesTransferred
        Dim WiP As Integer = 0
        WiP = eventArgs.ByteCount
        ProgressBar1.Minimum = 0
        ProgressBar1.Maximum = mySize
        ProgressBar1.Value = mySize - WiP
End Sub

1 Answer

0 votes
by (162k points)
You will need to use a different thread to run the download in - the download is blocking.

We do plan to add asynch downloads at some point.

hi,
when this event is raised my app. freeze , download continue but my application dousn't responde. when download finish my app response again..

how i can solve this problem ?

Categories

...