I'm asking for help about the winsock control to do a ftp client...
Here is my code:

VB Code:
  1. Private Sub btnConnect_Click()
  2.  
  3. Dim buffer As String
  4. Winsock1.RemoteHost = "ftpperso.free.fr"
  5. Winsock1.RemotePort = 21
  6.  
  7. If Winsock1.Connect Then
  8. MsgBox ("On est pas connecté")
  9. End If
  10.  
  11.  
  12. Winsock1.SendData ("USER *****")
  13. Winsock1.Accept (buffer)
  14.  
  15. txtCmdRec.Text = buffer
  16.  
  17. End Sub

I'm sure that my script doesn't work but how learn without mistake ^^

Thx for your help