Creating a custom user control – Kofax DOKuStar Validation User Manual
Page 64

DOKuStar Validation for Ascent Capture
Page
• 60
Creating a Custom User Control
In the previous section is described, how to create an add-in for Validation.
In this section a new custom user control is added to Validation. The appropriate service is called
UserCtrlBarData
service. It is only possible to add one and only one custom user control.
We will implement the custom user control for Validation using an add-in:
First we have to add another reference. Use the command
References
of the
Project
menu. In the
References
dialog box select the entry
ODT DOKuStar Validation (Services) … Type Library
of the
currently installed version:
Now we add an ActiveX control to our project and change its name from
UserControl1
to
User
. Our project
now contains a class and a user control:
In the object view of the new control
User
we add two buttons and set the caption to
Clear
and
Restore
respectively: