Back to product page

Getting started in VB


Working with the COM object and ActiveX control.

Remarks

Working with the COM object

In order to insert wodTelnetDLX 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 Telnet Deluxe Client COM Object', 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 Telnet1 As wodTelnetDLXCom
 

6. In Form_Load function initialize the component
 
Private Sub Form_Load()
 Set Telnet1 = New wodTelnetDLXCom
End Sub
 

7. If you have licensed version of wodTelnetDLX, then after you initialize the component, set it's LicenseKey property:
 
Private Sub Form_Load()
 Set Telnet1 = New wodTelnetDLXCom
 Telnet1.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 Telnet1 = Nothing
End Sub
 

10. Do not forget to distribute wodTelnetDLX.DLL when using COM object!


Working with the ActiveX control

In order to insert wodTelnetDLX 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 Telnet Deluxe Client ActiveX Control', and click on 'Ok' to leave the dialog box.

5. Locate new wodTelnetDLX icon on Toolbox toolbar, and drag it to your form. Choose any rectangle size as you need, just as with ListView control.

6. Do not forget to distribute wodTelnetDLX.OCX when using ActiveX control!

Platforms

Windows