Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodFTPD
- Methods
- Properties
- Authentication
- BindIP
- BindIPType
- Certificate
- DirFormat
- Encryption
- EncryptionList
- FileLocking
- FIPS
- ForceUTF8
- GoodbyeMessage
- GreetingMessage
- HMacList
- HostKeyList
- KeyExchangeList
- MaxDataPort
- MinDataPort
- MonitorTransfers
- MyHostname
- MyIP
- Notification
- PasvPort
- Port
- Protocol
- Secure
- ServerName
- SFTPVersion
- Status
- StrictDataIP
- Threads
- Timeout
- UseIPv6
- Users
- Version
- VirtualFiles
- VirtualFolders
- Events
- wodFTPDNotify
- FtpUser
- FtpUsers
- VirtualFile
- VirtualFiles
- VirtualFolder
- VirtualFolders
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Getting Started in VB
Working with the COM object or ActiveX control
Remarks
Working with the COM objectIn order to insert wodFTPServer COM object in your project, follow these steps:
1. Install the component on your system by starting its setup program.
2. In the Visual Basic IDE, create new project or open existing one.
3. Click on 'Project', then on 'References' menu
4. Find and select 'WeOnlyDo! COM FTP Server Component', and click on 'Ok' to leave the dialog box.
5. Open code editor, and at the top, in (General) section add this code:
Dim WithEvents FTP1 As wodFTPDCom
6. In Form_Load function initialize the component
Private Sub Form_Load()
Set FTP1 = New wodFTPDCom
End Sub
7. If you have licensed version of wodFTPServer, then after you initialize the component, set it's LicenseKey property:
Private Sub Form_Load()
Set FTP1 = New wodFTPDCom
FTP1.LicenseKey = "xxxx....xxxx"
End Sub
8. To use notifications (optional) instead of events, please refer here.
9. To free up the resources when your program ends, destroy the component from Form_Unload
Private Sub Form_Unload(Cancel As Integer)
Set FTP1 = Nothing
End Sub
10. Do not forget to distribute wodFTPD.DLL when using COM object!
Working with the ActiveX control
In order to insert wodFTPServer ActiveX control in your project, follow these steps:
1. Install the component on your system by starting its setup program.
2. In the Visual Basic IDE, create new project or open existing one.
3. Click on 'Project', then on 'Components' menu
4. Find and select 'WeOnlyDo! COM FTP Server ActiveX Control', and click on 'Ok' to leave the dialog box.
5. Locate new wodFTPServer icon on Toolbox toolbar
6. Do not forget to distribute wodFTPD.OCX when using ActiveX control!