-
Hey, I'm trying to make an FTP Program but I can't even get the program to connect to an FTP site. I have all the boxes made for entering the IP address, port, username, password etc, but I cant get the connect button to work...here's my current code..
Private Sub cmdConnect_Click()
With Inet1
.Cancel
.Protocol = icFTP
.URL = txtURL.Text
.UserName = txtUserName.Text
.Password = txtPassword.Text
End With
End Sub
but what i want it to do is display the process of connecting in a text box so i know it connects, then i want a DriveListBox to display the contents of the FTP Site. I know it sounds complicated but Im sure someone could help me. Thanks in advance.
-
Remove Cancel command and try again.
- Dj4
-
All you have done in your code is set the inet1 properties. After you do that you need to execute a command:
Inet1.Execute "put c:/blah.txt /blah.txt" would be an example of an execute.
Hope that helps you get started.
Culland