.NET Barcode Generator
for WinFroms Application in C#.NET
Winforms .NET Barcode Generation DLL
Barcode .NET WinForms > Barcode in .NET WinForms > Code 128
Linear Barcode in .NET WinForms
Code 39 in C#
Code 128 in C#
EAN-13 in C#
EAN 128 in C#
UPC-A in C#
Code 128 .NET Barcode Generator/Library for C#.NET
Code 128 Barcode Generator in C#.NET - Overview
Code 128 .NET barcode generator/library is a barcode image generator for C# .NET projects in Windows Forms application. Code 128 barcode control provides a complete solution for integrating dynamic Code 128, Code 128A, Code 128B and Code 128C barcodes into .NET Framework Applications using Visual C#.NET. Easy-to-configure assistant tool lets you easily generate barcodes in Visual C# .NET projects. Free trial evaluation package is provided with C#.NET sample code listing.

.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#.
Barcode images are exported as high quality GIF, BMP, PNG, JPEG/JPG and TIFF. Code 128 barcode library entitles users to set the properties of the barcodes. Royalty-free perpetual developer licenses and optional source code are available in Aspper Code 128 generator.
Aspper.com helps .NET programmers to generate most popular dynamic linear and 2D barcodes in Windows Forms applications using C# barcode class library.

Linear barcodes: Code 39, EAN-13, GS1-128,UPC-A

2D barcodes: Data Matrix,PDF-417,QR Code
Code 128 Barcode Generator/Library for C#.NET - Benefits
Code 128 Barcode Generator/Library for .NET Applications
Aspper.com provides complete information of User Guide for Visual C# on how to generate dynamic Code 128 barcodes into .NET applications and report solution.
How to Create Dynamic Code 128 Barcodes on C#.NET App

Generate and Draw Code 128 1D Barcodes in C#.NET Classes

  1. Download the Code 128 barcode generation SDK and unzip it. Copy the generation dll to your C#.NET project folder.
  2. Open your project in Visual Studio; add Code 128 barcode generation dll to project reference.
  3. Right click the form, choose (view code) in the list. Barcodes could be created easily by adding C# code.
// Create linear barcode object
BarCode code128 = new BarCode();
// Setting barcode symbology type
code128.Symbology = Symbology.Code128Auto;
// Draw & print generated barcode to png image file
code128.draw ("csharp-code128.png ");
Property setting of Code 128 with C#.NET
// Set unit of meature in the library.
code128.UOM = UnitOfMeasure.PIXEL;
// Set bar module width (X), default is 2 pixel;
code128.X = 1;
//Set bar module height (Y), default is 75 pixel;
code128.Y = 60;
// Set the left, right, top, bottom margins of barcode images. Defaults are 0.
code128. MarginLeft = 0;
Valid values are:
code128. MarginRight
code128. MarginTop
code128. MarginBottom
//Set resolution of image, default is 72 dpi.
code128.Resolution = 65;
// Set barcode orientation of image: 0, 90, 180, 270 degrees
code128. Angle = Angle. Degree0;
// Set data to be encoded
code128.Data = "0123456789";
// Set barcode symbology type. Valid values are: Symbology.Code128A; Symbology.Code128B; Symbology.Code128C
code128.Symbology = Symbology.Code128Auto;
// Enable checksum digit
code128.AddCheckSum = true;
// Apply Tilde function of character "~" to encode special characters. Default is false.
code128. EnableTilde = true;
Text setting for Code 128 with C#.NET
// If true, human readable text will be displayed under the barcode
code128.ShowText = true;
//If true, display checksum digit
code128. ShowCheckSum Char = true;
// Setting the text font
code128.TextFont = new Font("Arial", 9f, FontStyle.Regular);
// Set the space between barcode and text. Default is 6 pixel.
code128.TextMargin = 6;
Format setting for Code 128 with C#.NET
// Create Code 128 and encode barcode to gif format
code128.Format = ImageFormat.Gif;
Color setting for Code 128 with C#.NET
// set background color of barcode image, Default is white.
code128. BackgroundColor = white;
// set foreground color of barcode image, Default is black.
code128. ForegroundColor = black;

Drag and Drop Code 128 Linear Barcodes to C#.NET Form

  1. Download the Code 128 barcode generation SDK and unzip it. Copy the generation dll to your C#.NET project folder.
  2. Open your project in Visual Studio after the installation.
  3. Right click Toolbox in Visual Studio then click (Choose Item) button. Click button (Browse) in the Choose Toolbox Items dialog.
  4. Find the C#.NET barcode dll, and then click (OK) button.
  5. The barcode items will be in the (Component) section of the Tools Palette.
  6. Drag and drop the barcode control in the toolbox to your .NET Windows Form. Double click the barcode image in the forms
  7. It is easy to generate barcode by using C# code.