BizCode Barcode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Powerful barcode creating DLL
  • Completely run in VB.NET
  • 100% sample code provided
  • Multiple barcode formats
  • Full controls provided
How to Set UPC-A Size in VB.NET
VB.NET UPC-A Generator is one function of Barcode Generator for .NET Ultimate. It can be completely run in VB.NET and easily integrated into any VB.NET applications, including VB.NET Winforms, VB.NET Web Forms, VB.NET console applications, VB.NET Crystal Report and SSRS.
VB.NET UPC-A is easy to draw UPC-A barcodes with .NET Design View Barcode Control and supports UPC-A supplement 2 and 5 digit to add on. Comprehensive VB.NET sample code is provided as a developer guide for users to generating UPC-A, UPC-A+2 and UPC-A+5 barcodes in their VB.NET project. This guide provides a comprehensive C# sample code for UPC-A size setting in VB.NET; others please go to
UPC-A Size Related Properties

Supplementary Barcode

Barcode properties Symbology, SupplementCode, SupplementSpace and SupplementHeight are provided by Barcode Generator for .NET Ultimate for users to add supplementary 2 & 5 digits for UPC-A barcode with specified size.

Barcode Resolution

Barcode property Resolution is provided by Barcode Generator for .NET Ultimate for users to set resolution in UPC-A barcode with specifying the number of dots.

Barcode Unit

Sizing property BarcodeUnit is provided by Barcode Generator for .NET Ultimate for users to define the unit measurement (pixel, cm, or inch) to measure all barcode size related properties in UPC-A barcode.

Quiet Margin

Sizing properties QuietMargin are provided by Barcode Generator for .NET Ultimate for users to manage the quiet margin of top, bottom, right and left in UPC-A barcode.

Bar Width & Height

Sizing properties BarWidth and BarHeight are provided by Barcode Generator for .NET Ultimate for users to control the width and height of modules in UPC-A barcodes.

Barcode Width & Height

Sizing properties BarcodeWidth and BarcodeHeight are provided by Barcode Generator for .NET Ultimate for users to set the whole barcode width and height of UPC-A barcode in accordance with users’ needs.
Customize UPC-A Barcode Sizes in VB.NET
Make sure that your have installed those programs before you control UPC-A barcode size in VB.NET:
Customize UPC-A Barcode Size in VB.NET
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()

' Add Supplementary 5-digit barcode barcode for UPC-A barcode
barcode.Symbology = BusinessRefinery.Barcode.Symbology.UPCA_5
barcode.Code = "0123456789"
barcode.SupplementCode = "12578"

' Change UPC-A barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL

' Manage Supplementary 5-digit barcode bar height and the space
barcode.SupplementHeight = 0.4;
barcode.SupplementSpace = 20;

' Specify UPC-A barcode width & height
barcode.BarcodeHeight = 100
barcode.BarcodeWidth = 500

' Specify UPC-A bar width & height
barcode.BarHeight = 75
barcode.BarWidth = 3

' Change UPC-A resolution in DPI
barcode.Resolution = 104;

' Control UPC-A barcode top margin, bottom margin, right margin and
left margin size

barcode.BottomMargin = 7
barcode.TopMargin = 7
barcode.LeftMargin = 5
barcode.RightMargin = 5
barcode.drawBarcode2SizeFile("c:/upc-a-vb-net.gif")