Tutorial Using in VB6
Home Product
Details Free 
Demo Pricing &
Ordering Related
Products Support About Us

Back to all documents

Tutorial - Getting Started with Visual Basic 6 and the OPC Web Client ActiveX Controls

The following tutorial takes you step-by-step setting-up the Visual Basic to be able to use the OPC Web Client ActiveX Controls. This tutorial shows you how to create a simple application that when started-up will display the value of a Tag.

Creating a new project

  1. Open Visual Basic 6
  2. Create a new project, by choosing the "New" option from the "File" menu.
  3. Choose "Standard EXE" from the dialog of Visual Basic templates.
  4. You will see a new <empty> form get created.

Referencing the OPC Web Client

  1. Go to the "Project" menu, and choose the "References" option.
  2. Scroll down the list and locate "EasyOPCDA 3.0 Type Library" and check the box next to it.
  3. Click the OK button.

Using the OPC Web Client

  1. Double-click the Form to go to the Code view
  2. You will now be inside the "Form_load()" event.
    Move the cursor into the middle of the "Sub" so that it is on the blank line. as shown below:
     

     
  3. Now you can copy & paste any of the code from the tutorials section.

Copyright Software Toolbox, Inc., 1996-2004, All Rights Reserved Worldwide.
148A East Charles Street, Matthews, North Carolina, USA 28105
Phone: 704-849-2773 or 1-888-665-3678 (US), Fax: 704-849-6388
sales@softwaretoolbox.com | support@softwaretoolbox.com