BizCode Barcode Generator for Winforms
The most robust & powerful barcode component for Microsoft .NET Windows Forms
Quick Overviews
  • Professional barcode control
  • Flexible controls provided
  • Support WinForms projects
  • Linear & 2D barcodes support
  • Winforms Data-binding support
How to Generate Code 128 in .NET WinForms Library
Code 128 (a.k.a ANSI/AIM 128, ANSI/AIM Code 128, USS Code 128) is primarily promoted in 1981, is a special version of GS1 128. It is a linear barcode symbology with excellent density and high reliability. Code 128 is generally used in shipping and packaging industries. Besides, the Code 128 barcode standard is maintained by AIM.
Code 128 Generator for Winforms provides several programming language for developers to use in generating Code 128 barcode: C#, VB.NET, managed C++ as well as Delphi .NET. Code 128 barcodes generated by this product is entirely compatible with the latest ISO Standards. It also supports the barcode generating in .NET Class Library and .NET Console Application. 100% managed C# code make this product safe and secure.
A set of advanced imaging options and other functionalities are provided to customize the Code 128 images and enhance the image qualities, such as rotation, resolution, etc. This generator also supports text option and automatically checksum digit calculation, developers can set them enabled or disabled.

This page explain how to create your own Code 128 in.NET Windows Forms applications in accordance with ISO / IEC 15417 (2nd edition 2007-06-01); you may get more specific user manuals here on how to encode valid data for Code 128, how print and save Code 128 in Png and other image formats, and how to specify proper size for Code 128.
Code 128 Generator for .NET Winforms Features
Encodable CharactersSupport to encode:
- Standard ASCII characters 0-127 (default: ISO/IEC 646);
- Extended ASCII characters 128-255 (default: ISO/IEC 8859-1)
ISO barcode SpecificationCode 128 barcode generation in accordance with the latest ISO barcode specification - ISO / IEC 15417 (2nd edition 2007-06-01)
Programming DevelopmentSupport Code 128 generation in .NET Class (C#, VB.NET); .NET Windows Forms Applications and .NET Console Applications
Image & SizeMultiple barcode setting options to customize Code 128 barcode image and size, including module width, image width, color, rotation, resolution, text, etc.
For all printersResolution customizable with DPI setting to print high-quality barcodes with all printers! No special printers or hardware are required
Safe & SecureProvide 100% managed code product created in Visual C# .NET with strong name signatures and signed DLLs
Code 128 Generator for .NET Winforms Requirements
Windows OS
- Microsoft Windows 7
- Windows Server 2008
- Windows Vista
- Windows Server 2003
- Windows XP
Development Environments
- .NET 2.0/3.0/4.0
- C#, VB.NET, Managed C++, Borland Delphi    for.NET
- Visual Studio 2005/2008/2010
- .NET Windows Forms Application
- .NET Class and Console Applications
Install Code 128 Generator for .NET Winforms
  1. Download BizCode Generator for Winforms and unzip;
  2. Add reference: Add "BusinessRefinery.Barcode.Win.dll" to your .NET Winforms project reference;
  3. Add to toolbox: To add Barcode Control to your .NET Winforms Web Forms toolbox.
How to Drag & Drop Barcode Control into .NET Winforms projects?
  1. Install .NET Winforms Barcode Control;
  2. Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
  3. Drag and drop the WinLinearBarcode control into the Forms;
  4. You will see a barcode image generated; more Code 128 barcode setting please see below.
How to Generate Code 128 with C#, VB.NET Class in .NET Winforms?
Copy those following sample code to your .NET Winforms projects:
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.CODE128;
barcode.Code = "0123456789";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/code-128-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE128
barcode.Code = "0123456789"
barcode.Resolution = 104
barcode.Rotate = BusinessRefinery.Barcode.Rotate.Rotate270
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/code-128-vb-net.gif")