Visual Basic - Barcodes in projects

EnterpriseTo use this functionality you require the Enterprise Edition

How to add a barcode to a Visual Basic project

Flash Video

You can use ActiveBarcode in Visual Basic like any other control (e.g. like a button). First you have to add the ActiveBarcode control into the development environment.

Adding ActiveBarcode to the development environment
Go to the menu "Tools" and select the function "Choose Toolbox items":

Screenshot

A dialog appears. As ActiveBarcode is a COM component first select the tab "COM Components":

Screenshot

A list of the available controls will be displayed. Select "ActiveBarcode" and activate it. Then click OK.

Screenshot

Now ActiveBarcode is added to your development environment.

Use ActiveBarcode (A simple example)
Create a new project. To add the ActiveBarcode Control to a form you select the function "Toolbox" from the "View" menu first. This opens the toolbox. "Toolbox":

Screenshot

Have a look for the ActiveBarcode Control in the toolbox now.

Screenshot

Click on ActiveBarcode there and move it the form you want to place the control. The control will then be placed on this form.

Screenshot

You can change the barcode properties of the barcode control now or later. In this example we change the background color to white:

Screenshot

Now add a "Textbox" to this form, too.

Screenshot

Double click this textbox now to open the source code for the event "Textchange". We will use this event to change the barcodes content every time the textbox changes.

Screenshot

That's it. Now launch this example application:

Screenshot

If you change the content of the textbox in the running application, the barcode will encode this.

Not visual usage of ActiveBarcode:
You also can create ActiveBarcode at run time and use the the control:

In the following example ActiveBarcode is created invisible, then a Code 128 with the encoded content "Example" is generated and saved as image file by using the SaveAsBySize function.

Dim MyObject As Object
MyObject = CreateObject("BARCODE.BarcodeCtrl.1")
MyObject.text = "Example"
MyObject.typename = "Code 128"
MyObject.SaveAsBySize("example.bmp", 400, 100)



Related video:

Video (Flash) Description Size
Icon Visual Studio:
Using the ActiveBarcode control in a Visual Studio project.
2,2MB Enterprise


Read more descriptions of how to add barcodes to standard applications (e.g. Office, Excel, Word, Access forms, Access reports, PowerPoint, OpenOffice.org, Lotus Notes, Publisher, Freelance, Freehand MX, Image Editors, WordPad, etc.)

rss twitter Bookmark and Share
| Home | Shop | Email | Datenschutz | Sitemap | Print preview | Version 5.57 | © Lars Schenk & Frank Horn

All trademarks and product names mentioned are the property of their respective owners.