Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > VB.NET Barcode Generation Guide > VB.NET POSTNET Barcode Generation Tutorial
Download Barcode for .NET Suite Trial

VB.NET POSTNET Barcode Generator Control

POSTNET Barcode Generation in Visual Basic .NET Applications
  • VB.NET Barcode Generator Library entirely compatible with .NET Framework 2.0 and above
  • Easily create standard POSTNET barcode image in Visual Basic .NET applications
  • Create multiple linear and 2D barcodes in .NET applications using Visual Basic Class
  • Create and save POSTNET barcode image in common picture saving formats, like Png
  • Create user-defined POSTNET barcode image with an extremely intuitive user interface
  • Professional VB.NET POSTNET Barcode Creation DLL package in the market from early 2003s
VB.NET POSTNET Barcode Overview
Unlike most other 1D barcodes whose data encoding reflects in the width of the bars and spaces, POSTNET data encoding reflects in the height of the bars. That is why all the bars of POSTNET barcode are essentially the same width but vary only in height.
There are four formats of POSTNET barcode used in postal service:
  • A 5 digit (plus check digit) barcode
  • A 6 digit (plus check digit) barcode
  • A 9 digit (plus check digit) barcode
  • An 11 digit (plus check digit) barcode
In addition to linear barcodes, our VB.NET Barcode Generator Library also supports 2D/Matrix barcodes, like QR Code in VB.NET, PDF-417 in VB.NET and Data Matrix in VB.NET.
VB POSTNET Barcode Generation in ASP.NET Web Form Applications
Follow steps below to create POSTNET barcode image in ASP.NET program using VB class:
  1. Add barcode generation dll (BarcodeLib.Barcode.ASP.NET.dll) to the Toolbox in your Visual Studio VB ASP.NET Website project.
  2. Go to the unzipped package to find components "linear.aspx" and "linear.aspx.cs" and copy to your VB ASP.NET project folder.
  3. Drag and drop LinearASPNET under the Toolbox to your aspx page.
  4. Compile codes to get user-defined POSTNET barcode image as below. Or you can get the desired POSTNET barcode image through changing settings in the Properties window.
     Me.LinearASPNET1.Data = "145289321"
Me.LinearASPNET1.Type = BarcodeLib.Barcode.BarcodeType.POSTNET
Me.LinearASPNET1.BarWidth = 1
Me.LinearASPNET1.BarHeight = 60
Me.LinearASPNET1.BarHeightRatio = 0.4
5. Debug to see the generated POSTNET barcode image.
VB POSTNET Barcode Generation in .NET Windows Forms Applications
Follow steps below to create POSTNET barcode image in .NET WinForms program using VB class:
  1. Create a windows project in your Visual Studio and drag PixtureBox and Button to Form1.
  2. Double click the button and add reference (BarcodeLib.Barcode.WinForms.dll) to your VB.NET WinForms project.
  3. Generate POSTNET barcode image in VB.NET Windows Forms using the following sample codes.
     Dim barcode As New Linear()
barcode.Type = BarcodeType.POSTNET
barcode.Data = "145289321"

Dim POSTNET As Bitmap = barcode.drawBarcode()

Me.PictureBox1.Image = POSTNET
4. At last, click the button to see the generated POSTNET barcode image.
Other Supported Linear and 2D Barcode Symbologies
VB.NET Linear Barcodes:
VB.NET Matrix Barcodes:
2D barcodes contained: Data Matrix, PDF417, QR Code.