Hi,
This is my first post here. I am developing a simple ftp client to put files in a server. The client also shows the progression: it tells how many files have been uploaded.
It works fine except for one problem: when opening a new application or changing to another opened application, when returning to the ftp client you get a blank form that it does not update.
Here's the loop:
I would appreciate any suggestion.[/COLOR][/SIZE]
Thank you very much in advance.
This is my first post here. I am developing a simple ftp client to put files in a server. The client also shows the progression: it tells how many files have been uploaded.
It works fine except for one problem: when opening a new application or changing to another opened application, when returning to the ftp client you get a blank form that it does not update.
Here's the loop:
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] i [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2] = 1[/SIZE]
[SIZE=2]transfered = 0[/SIZE]
[SIZE=2][COLOR=#0000ff]For[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Each[/COLOR][/SIZE][SIZE=2] foundFile [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]String[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]In[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]My[/COLOR][/SIZE][SIZE=2].Computer.FileSystem.GetFiles([/SIZE][SIZE=2][COLOR=#800000]"c:\difieretemporales\img"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]RC = FtpPutFile(INetConn, foundFile, Trim(Str(i)) + [/SIZE][SIZE=2][COLOR=#800000]".jpg"[/COLOR][/SIZE][SIZE=2], 2, 0)[/SIZE]
[SIZE=2]transferidos += 1[/SIZE]
[SIZE=2]fEnvio.lTiempoRestante.Text = [/SIZE][SIZE=2][COLOR=#800000]"Transferred:"[/COLOR][/SIZE][SIZE=2] + Str(transferidos) + [/SIZE][SIZE=2][COLOR=#800000]"of" [/COLOR][/SIZE][SIZE=2]+ Str(numFicheros) + [/SIZE][SIZE=2][COLOR=#800000]" files."[/COLOR][/SIZE]
[SIZE=2][COLOR=#800000]'Refresh the form[/COLOR][/SIZE]
[SIZE=2]fEnvio.Refresh() [/SIZE]
[SIZE=2]i += 1[/SIZE]
[SIZE=2][COLOR=#0000ff]Next[/COLOR][/SIZE]
[SIZE=2][COLOR=black]
Thank you very much in advance.
Last edited by a moderator: