Barcoding  >  .NET Barcode for VB.NET on WinForms  >  VB.NET Barcode Generator


VB.NET Barcode Generation Tutorial

How to generate linear & 2D barcodes in VB.NET projects?

VB.NET Barcode Generator offers the most affordable .NET barcode generator for barcode .NET professionals.


How to generate linear (1D) barcodes in VB.NET Class?

The following VB.NET code illustrates how to generate linear barcodes in VB.NET class:

// Create linear barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.BarCode
barcode = New KeepDynamic.Barcode.Generator.BarCode()

// Set barcode symbology type to Code-128 in VB.NET
barcode.SymbologyType = SymbologyType.Code128;

// Set barcode value in VB.NET
barcode.CodeText = "Code128"

// Set barcode drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png

// Generate barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-code128-vbnet.png")
  
// Generate barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
 
// Create barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")


How to generate Data Matrix barcodes in VB.NET Class?

The following VB.NET code illustrates how to generate Data Matrix barcodes in VB.NET class:

// Create Data Matrix barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.DataMatrix
barcode = New KeepDynamic.Barcode.Generator.DataMatrix()

// Set Data Matrix barcode value in VB.NET
barcode.CodeText = "Data Matrix in VB.NET"

// Set Data Matrix drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png

// Generate Data Matrix barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-datamatrix-vbnet.png")
  
// Generate Data Matrix barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
 
// Create Data Matrix barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")


How to generate PDF-417 barcodes in VB.NET Class?

The following VB.NET code illustrates how to generate PDF-417 barcodes in VB.NET class:

// Create PDF417 barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.PDF417
barcode = New KeepDynamic.Barcode.Generator.PDF417()

// Set PDF-417 barcode value in VB.NET
barcode.CodeText = "PDF417 in VB.NET"

// Set PDF-417 drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png

// Generate PDF-417 barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-pdf417-vbnet.png")
  
// Generate PDF-417 barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
 
// Create PDF-417 barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")


How to generate QR-Code barcodes in VB.NET Class?

The following VB.NET code illustrates how to generate QR-Code barcodes in VB.NET class:

// Create linear barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.QRCode
barcode = New KeepDynamic.Barcode.Generator.QRCode()

// Set QR-Code barcode value in VB.NET
barcode.CodeText = "QRCode in VB.NET"

// Set QR-Code drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png

// Generate QR-Code barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-qrcode-vbnet.png")
  
// Generate QR-Code barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
 
// Create QR-Code barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")


Creating barcodes using .NET Barcode Generator Windows Form Control

To create barcodes in VB.NET Windows Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.Windows.dll to your VB.NET project reference

  • Add KeepDynamic.BarCode.Windows.dll to windows project toolbox

  • Drag the one of the BarCodeControl, DataMatrixControl, PDF417Control, QRCodeControl item to your windows forms


Creating barcodes using ASP.NET Barcode Generator ASP.NET Web Form Control

To create barcodes in VB.NET ASP.NET Web Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.AspNet.dll to your VB.NET project reference

  • Add KeepDynamic.BarCode.AspNet.dll to windows project toolbox

  • Drag the one of the BarCodeControl, DataMatrixControl, PDF417Control, QRCodeControl item to your ASP.NET Web form pages, in your ASP.NET design view






.NET Barcode Generator supports most common linear (1d) and matrix (2d) bar code standards, including:

2D Barcodes Code-39 related Code-128 related Code-25 related EAN/UPC related Other Linear Barcodes
Data Matrix

PDF-417

QR-Code

Code-39

Code-93

Code-128

GS1-128/UCC/EAN-128
Code 2 of 5

Interleaved 2 of 5

ITF-14

Identcode

Leitcode

EAN-8

EAN-13

ISBN

ISSN

UPC-A

UPC-E
Codabar

Code-11

POSTNET

PLANET

USPS Intelligent Mail Barcode (OneCode)

RM4SCC

MSI Plessey