Create barcodes in VB.NET

Add Code 128 barcodes to your Visual Studio VB.NET Windows Forms project.

Step 1. Click on Project > Add Existing Item... and browse for the file Code128Fonts.vb.  The default file location is:

 C:\Program Files\BarCodeWiz Code 128 Fonts\Examples\VBNET\Code128Fonts.vb

Adding Code 128 Font Functions to VB NET

Select the file Code128Fonts.vb

Step 2. Add a TextBox and a Label to the form.  Change the Font properties of Label1 as below

vBNET003

Step 3. Double-click on TextBox1 and add the following code:

  Label1.Text = Code128Fonts.Code128B(TextBox1.Text)

Converting text into Code 128 B barcode

Step 4. The result:

Code 128 B barcode on a User Form in VB NET

To see a more advanced example of barcode printing and label formatting with Code 128 Barcode Fonts, open the project:

C:\Program Files\BarCodeWiz Code 128 Fonts\Examples\VBNET\