You can instantiate the XceedFtp control without putting it on a form. To do this, make the library available in your development environment (this should already have been done if you followed the installation instructions) and simply create an instance of the object like you would any other variable. The XceedFtp control's type is "XceedFtp" or "XceedQuickFtp" if you want to do this with the XceedQuickFtp control.
Visual Basic |
Copy Code |
' Make sure you added the Xceed FTP Library to your object references. To do this, go to the ' Project menu and select the "References..." menu item, then checkmark the Xceed FTP Library ' entry in the list of components.
' Here we define the type for our variable Dim WithEvents XceedFtp1 As XceedFtp
' Now we instantiate the variable with an XceedFtp control instance Set XceedFtp1 = New XceedFtp
Call XceedFtp1.License( "your license key" )
' And now we can work as usual... XceedFtp1.ServerAddress = "ftp.myserver.com" XceedFtp1.UserName = "Kenny" ... |
Foxpro |
Copy Code |
PRIVATE ResultCode && integer
&& This technique does not allow you to capture events. && The result code, however, is accessible.
&& Here we create an XceedFtp object called XceedFtp1 XceedFtp1 = CreateObject("XceedSoftware.XceedFtp") XceedFtp1.License( "your license key" )
&& And now we can work as usual XceedFtp1.ServerAddress = "ftp.myserver.com" XceedFtp1.UserName = "Kenny" ... |