To add an Active Barcode Component control to a Visual Basic form, select Components from the VB Project menu. If dLSoft 1D Barcode control module is displayed in the list of available controls, then ensure that it is checked. If it does not appear in the list user the Browse button to locate it in its installation directory (or in Windows System or System32), then check its name in the list. Once checked, an icon representing the component will appear in the toolbox.
The controls appear in the list of available controls as follows:
|
Active Barcode Component |
control name |
|
1D Universal |
dLSoft Barcode 1D control |
|
Standard |
dLSoft Barcode Std control |
|
GS1 |
dLSoft Barcode GS1 control |
|
Aztex |
dLSoft Aztec control |
|
Datamatrix |
dLSoft Datamatrix control |
|
Databar |
dLSoft Databar control |
|
Maxicode |
dLSoft Maxicode control |
|
PDF417 |
dLSoft PDF417 control |
|
QR Code |
dLSoft QR Code control |
|
2D Universal |
dLSoft Barcode 2D control |
Clicking on the Active Barcode Component’s icon in the toolbox causes the cursor to change to a cross. Positioning the cross on a Visual Basic form, holding down the left mouse button and dragging the cursor down and to the left, then releasing the mouse button, causes a rectangle to be drawn on the form. An image of a (default) barcode will be shown within this rectangle. You may wish to use this image of the component. Alternatively you may hide the component (by setting its Visible property to false) and use the components methods and properties to create an image that is placed elsewhere on the form - as in the sample Visual Basic program that is supplied with the component and uses code of the form:
Axbarcode1.ImageHeight = i
Axbarcode1.ImageWidth =
j
Axbarcode1.Xunit = 0
Axbarcode1.CodeType =
type
Axbarcode1.Caption =
Text
Image1.Picture = Axbarcode1.Picture
A single Visual Basic Form may contain any number of Active Barcode Components. The first to be added will be called Axbarcode1, the second Axbarcode2, and so on; the names may be changed by the user by modifying the Name property within the Visual Basic Properties box.
Alternatively an array of controls may be created using the Index property.
More: