How to generate and print Code128 in an image in VB.NET for .NET applications
VB.NET Barcode Creator for Code 128 Generation
  • Professional barcode component for .NET 2.0/3.0/4.0
  • Generate QR Code, UPC/EAN, Code 128, ISBN, and more in .NET
  • Support VB.NET, C#, Managed C++ and Borland Delphi for .NET.
Barcode in VB.NET > Linear > Code 128
Code 128 VB.NET Barcode Generator
  • Insert Code 128 generation capability easily into Visual Basic .NET Applications
  • Easy to draw high quality barcodes in VB.NET Windows Forms project
  • Support SQL Server Reporting Service and Crystal Reports for VB.NET
  • Created Code 128 images are compatible with ISO / IEC 15417 specification
  • Support drag-and-drop implementation & VB.NET class implementation
  • Strong named 100% managed code created
  • Support PNG, BMP, GIF, JPEG, TIFF and multipage TIFF formats
  • Allow customization of properties such as X-dimension, Y-dimension, barcode height etc.
.NET Barcode Generator SDK library includes ASP.NET Barcode Generator, C# Barcode Generator, VB.NET Barcode Generator, QR Code Generator .NET, QR Code Generator ASP.NET, QR Code Generator C#, QR Code Generator VB.NET, Code 128 .NET, Code 128 VB.NET, Code 128 ASP.NET, Code 128 C#.

Avapose.Barcode for .NET DLL is the most comprehensive barcode for rendering barcode images into Visual Basic.NET applications. The code 128 barcode generator provides easy-to-configure control, which was provided with royalty free & perpetual license. Code 128 images will be created in a reliable manner by writing Visual Basic codes.
Code 128 .NET Barcode Component & Control for Visual Basic .NET:
  • Windows Forms Application (design-time and runtime support)
  • .NET Console Application (runtime support)
  • .NET Class Library (runtime support)
  • Windows Service (runtime support)
Code 128 Barcode Library SDK for VB.NET - Code 128 Information
Code 128 is a continuous linear barcode which encodes all 128 characters of ASCII. Length of encoded data is variable with high-density. Code 128 is self-checking and the checksum digit is compulsory, however it will not be displayed in the human readable interpretation, nor shall it be transmitted by the decoder.
Encodable character set of Code 128 control for VB.NET:
  • All 128 ISO/IEC 646 characters, i.e. characters 0 to 127 inclusive, in accordance with ISO/IEC 646
Code 128 Class Library in VB.NET projects - Code 128 Generation


Before inserting Code 128 images in Windows Forms applications, you need install:
  • Operating Systems: Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 or Windows XP
  • .NET Framework: 2.0, 3.0, 3.5 or greater
  • Microsoft Visual Studio: 2005/2008/2010
  • Avapose.Barcode for .NET

VB.NET code for Code 128 barcode creation in VB.NET projects using .net barcode creator

  1. Download Avapose.Barcode for .NET trial package and unzip it on the user’s computer;
  2. Navigate to the Avapose.linearbarcode.winforms.dll and add it to the Winforms project reference;
  3. Drag and drop a button to the form, and double-click the button;
  4. Write the VB code samples below;
  5. Debug it, Code 128 barcode image will be shown on the Form.

Dim a As Avapose.linearbarcode.Linear = New Avapose.linearbarcode.Linear()
vb.LinearBarcode = Avapose.linearbarcode.LinearBarcode. Code128
vb.BarcodeData = "VB.NETCode128"
vb.BarWidth_X = 1
vb.BarHeight_Y = 60
vb.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif


// create and draw to image file
Public Sub DrawBarcodeImage(ByVal filename As String)

// create, draw, paint barcode on Graphics object
Public Sub DrawBarcodeImage (ByVal graphics As System.Drawing.Graphics)

// create, draw, paint barcode on Bitmap object
Public Function DrawBarcodeImage () As System.Drawing.Bitmap

// create, draw, paint barcodeon Stream object
Public Sub DrawBarcodeImage (ByVal fileStream As System.IO.Stream)

// create, draw, paint barcode on byte[] object
Public Function DrawBarcodeImage () As Byte()

Related Code 128 Barcode Integration & Generation Information
The following Code 128 barcode integration and creation information links relate to this product that may be of interest to you:
Testmonial for Avapose Barcode Generator for .NET
We bought your product Barcode Generator for VB.NET a few weeks ago, and it works pretty well!
Carlos Louis, Eureka Software Ltd, UK.