Accusoft.TwainPro9.ActiveX
Using TwainPRO as an ActiveX Control

TwainPRO can be used as an ATL COM ActiveX control in development environments, like Visual Basic, that accept ActiveX controls. The following discussion assumes that your development environment is Visual Basic.

Creating an Application with Visual Basic and TwainPRO

  1. Add the TwainPRO control to a project.
  2. Use the TwainPRO control on a form.
  3. Write code that controls the TwainPRO properties and methods.

Loading the TwainPRO Control Involves Adding it to a Project

  1. Open the project that will use the TwainPRO control. This can be a new or existing project.
  2. From the Project menu, choose Components. The Control window appears with a list of available controls.
  3. Select the Accusoft control (i.e., TwainPRO). Click the OK button.

Other Environments

The TwainPRO control is supported by a variety of host environments. To use TwainPRO in other environments, consult the development tool's documentation for information on how to use ActiveX controls. As soon as the control is loaded, the following things happen:

  1. The control becomes part of the current project.
  2. A new tool is added to the Toolbox. This tool is used to draw the TwainPRO control on the form.

The new control can now be used as if it were a standard control. The TwainPRO control has its own set of properties and methods which can be seen by using the Properties and Code windows.

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback