Getting Started in VB
Working with the COM object
In order to insert the wodSSH COM object into your project, follow these steps:
- Install the component on your system by starting its setup program.
- In the Visual Basic IDE, create a new project or open an existing one.
- Click on 'Project', then on the 'References' menu
- Find and select 'WeOnlyDo! COM Secure Shell Client COM Object', and click on 'Ok' to leave the dialog box.
- Open the code editor and at the top in the (General) section add this code:
Dim WithEvents SSH1 As wodSSHCom
- In Form_Load function initialize the component:
Private Sub Form_Load()
Set SSH1 = New wodSSHCom
End Sub
- If you have the licensed version of wodSSH, then after you initialize the component, set its LicenseKey property:
Private Sub Form_Load()
Set SSH1 = New wodSSHCom
SSH1.LicenseKey = "xxxx....xxxx"
End Sub
- To learn how to use notifications (optional) instead of events, please look here.
- To free up resources when your program ends, destroy the component from the Form_Unload event:
Private Sub Form_Unload(Cancel As Integer)
Set SSH1 = Nothing
End Sub
- Do not forget to distribute wodSSH.DLL when using the COM object!
Working with the ActiveX control
In order to insert the wodSSH ActiveX control into your project, follow these steps:
- Install the component on your system by starting its setup program.
- In the Visual Basic IDE, create a new project or open an existing one.
- Click on 'Project', then on the 'Components' menu
- Find and select 'WeOnlyDo! COM Secure Shell Client ActiveX Control', and click on 'Ok' to leave the dialog box.
- Locate the new wodSSH icon on the Toolbox toolbar
- Do not forget to distribute wodSSH.OCX when using the ActiveX control!
Platforms
Windows