BarCodeWiz Logo

Barcodes in VB.NET WinForms

Step 1. Add UPCEANFonts.vb

  • Click on Project > Add Existing Item... and browse for the file UPCEANFonts.vb. The default file location is:
    Documents\BarCodeWiz Examples\UPC EAN Barcode Fonts\VBNET\UPCEANFonts.vb


Step 2. Add the following controls to your form:

  • 1. TextBox (TextBox1) - text input, will be converted to barcode
  • 3. Label (Label1) - to display the encoded barcode
  • Set the Font of the label to BCW_UPCEAN_148pt

Step 3. Add the conversion code

  • Double-click on TextBox1 and add the following code:
    Label1.Text = UPCEANFonts.BCW_UPCA(TextBox1.Text)

Ready!

  • The final result