How to Generate Code 128 in .NET WinForms

How to Generate & Print Linear Code 128 Barcode Images in .NET WinForms

  • Compatible with ISO / IEC 15417 (2nd edition ) for accurate 1D Code 128 output
  • Mature barcode encoder developed entirely in C# for .NET Framework 2.0/3.0/4.0
  • Full integratation into Microsoft Visual Studio 2005/2008/2010
  • Linear Code 128 barcode generation in .NET Windows Forms applications
  • Programmatically generate Code 128 A, Code 128 B, Code 128 C in C# & VB.NET class library
  • Support printing Code 128 barcodes in GIF, BMP, PNG, JPEG/JPG & TIFF image formats
  • Provide permanent and royalty-free developer licenses for Code 128 Barcode Creation SDK
.NET WinForms Code 128 Barcode Generator Introduction
Code 128 barcode component SDK is a functionality of KA.Barcode for .NET WinForms, which enables users to generate and print Code 128 and other linear & 2D barcode types in .NET Windows appplications, C#, VB.NET class library as well as Crystal Reports. Flexible barcode settings are available for developers to adjust generated Code 128 barcodes with the user-friendly interface.
Code 128 Barcode Introduction in WinForms
Code 128, also known as ANSI/AIM 128, ANSI/AIM Code 128, USS Code 128, Uniform Symbology Specification Code 128, Code 128 Code Set A, Code 128 Code Set B, Code 128 Code Set C, is a high-density barcode symbology widely used in non-retail field such as internal company management, production assembly and logistic control, etc.
Code 128 Encodable Characters
  • Standard ASCII characters: 0-127 including A-Z, a-z, 0-9 and special characters
  • Extended ASCII characters: 128-255
Download .NET WinForms Code 128 Barcode SDK
Try now to download KA.Barcode for .NET WinForms free evaluation. "KeepAutomation.Barcode.Windows.dll" is included to generate Code 128 barcode image. We offer User Manual to guide you for barcode generation. And you should carefully read the End User License Agreement. The generated barcode image will include a "KA Barcode" watermark randomly.
Add Code 128 Barcode in .NET Windows Forms
  1. Right click in "Toolbox" in Visual Studio and select "Choose Items..."
  2. Click button "Browse..." to choose "KeepAutomation.Barcode.Windows.dll" from the unzipped package.
  3. Add "BarCodeControl" in Visual Studio Toolbox to Form1.
  4. Choose Code128 barcode type in Properties window and a Code 128 barcode image is generated.
  5. You can customize barcode image settings in the "Properties" window.
Create Code 128 in .NET WinForms Using C# or VB.NET
  1. Download and unzip the evaluation version of Code 128 barcode dll in .NET WinForms.
  2. Add "KeepAutomation.Barcode.Windows.dll" to your project reference.
  3. Copy demo C# or VB code below.
C# Sample code
     BarCode code128  = new BarCode();
code128.Symbology = KeepAutomation.Barcode.Symbology.Code128Auto;
code128.CodeToEncode = "Code128";

VB Sample code
     Dim code128 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

code128.Symbology= KeepAutomation.Barcode.Symbology.Code128Auto
code128.CodeToEncode = "Code128"

How to Generate Code 128 with Different Code Set in .NET WinForms
Code 128 barcode has three different code sets: Code set A, Code set B, and Code set C. Code set A encodes characters with ASCII values from 0 to 95 inclusive, and seven special characters; Code set B encodes characters with ASCII values from 32 to 127 inclusive, and seven special characters.; and Code set C encodes numeric pairs from 00 to 99 inclusive, as well as three special characters. Users may select different Code sets using "Symbology" property.
C# Sample code
     code128.Symbology = KeepAutomation.Barcode.Symbology.Code128A;
code128.Symbology = KeepAutomation.Barcode.Symbology.Code128B;
code128.Symbology = KeepAutomation.Barcode.Symbology.Code128C;
VB Sample code
     code128.Symbology = KeepAutomation.Barcode.Symbology.Code128A
code128.Symbology = KeepAutomation.Barcode.Symbology.Code128B
code128.Symbology = KeepAutomation.Barcode.Symbology.Code128C
How to Generate GS1 Compatible Code 128 in .NET WinForms
Code 128 is able to convert to GS1 compatible Code 128 by applying the "FNC1" property. Users may make it work using "FNC1" property and setting it to "FNC1.First", which designates data formatted in accordance with the GS1 General Specifications. At the same time, the "TildeEnabled" should set to true.
C# Sample code
     barcode.FNC1 = KeepAutomation.Barcode.FNC1.First;
barcode.TildeEnabled = true;
VB Sample code
     barcode.FNC1 = KeepAutomation.Barcode.FNC1.First
barcode.TildeEnabled = true
Free Trial DownloadWinForms Code 128.NET Class Code 128Using C#Using VB.NETData Matrix for .NET WinFormsPDF417 for .NET WinFormsQR Code for .NET WinFormsmoreCodabar for .NET WinFormsCode 39 for .NET WinFormsEAN-8 for .NET WinFormsEAN-13 for .NET WinFormsEAN 128 for .NET WinFormsIntelligent Mail for .NET WinFormsInterleaved 2 of 5 for .NET WinFormsISBN for .NET WinFormsITF-14 for .NET WinFormsRM4SCC for .NET WinFormsUPC-A for .NET WinFormsUPC-E for .NET WinFormsmore
KeepAutomation provides complete barcode automation solutions. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from