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 Code 128 Size in VB.NET
VB.NET Code 128 Generator is one function of Barcode Generator for .NET Ultimate, which is a mature, easy-to-use barcode generating component drawing dynamic Code 128 barcode images in .NET projects using VB.NET. It can completely run in VB.NET 2.0/3.0/4.0.
Multiple barcode setting options are provided by VB.NET Code 128 Generator to customize every aspect of Code 128 barcode image and size, including module width, image width, color, rotation, resolution, text, etc. Code 128 size related tutorial is provided in this document for implementing with VB.NET. You may find other tutorials on:
Code 128 Size Related Properties

Barcode Resolution

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

Barcode Unit

Sizing property BarcodeUnit is provided by Barcode Generator for .NET Ultimate for users to defines the unit measurement (pixel, cm, or inch) to measure all barcode size related properties in Code 128 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 Code 128 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 Code 128 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 Code 128 barcode in accordance with users’ needs.
Customize Code 128 Barcode Sizes in VB.NET
Make sure that your have installed those programs before you control Code 128 barcode size in VB.NET:
Customize Code 128 Barcode Size in C#, VB.NET
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE128
barcode.Code = "0123456789"

' Change Code 128 barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL

' Change Code 128 resolution in DPI
barcode.Resolution = 104

' Specify Code 128 barcode width & height
barcode.BarcodeHeight = 100
barcode.BarcodeWidth = 500

barcode.BarHeight = 75
barcode.BarWidth = 3

' Control Code 128 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:/Code 128-vb-net.gif")