Sub Button1_Click
Dim FTP As FTP
Dim ctm As CustomTrustManager
DateTime.DateFormat = "dd-MM-yyyy"
MsgboxAsync(DateTime.Date(DateTime.now),"")
FTP.Initialize("ftp", "ftp.server.com", 21, "user", "password")
If FTP.IsInitialized=True Then'
MsgboxAsync("yes","")
else if FTP.IsInitialized=False Then
MsgboxAsync("no","")
End If
FTP.Close
End Sub