Getting Started in VB |
In order to insert the wodVPN COM object into your project, follow these steps: 1. Install the component on your system by starting its setup program. 2. In the Visual Basic IDE, create a new project or open an existing one. 3. Click on 'Project', then on the 'References' menu 4. Find and select 'WeOnlyDo! COM VPN Component', and click on 'Ok' to leave the dialog box. 5. Open the code editor and at the top in the (General) section add this code:
6. In Form_Load function initialize the component:
7. If you have the licensed version of wodVPN, then after you initialize the component, set its LicenseKey property:
8. To learn how to use notifications (optional) instead of events, please look here. 9. To free up resources when your program ends, destroy the component from the Form_Unload event:
10. Do not forget to distribute wodVPN.DLL when using the COM object!
In order to insert the wodVPN ActiveX control into your project, follow these steps: 1. Install the component on your system by starting its setup program. 2. In the Visual Basic IDE, create a new project or open an existing one. 3. Click on 'Project', then on the 'Components' menu 4. Find and select 'WeOnlyDo! COM VPN ActiveX Control', and click on 'Ok' to leave the dialog box. 5. Locate the new wodVPN icon on the Toolbox toolbar 6. Do not forget to distribute wodVPN.OCX when using the ActiveX control! |