Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET WinForms Barcode > Windows Forms Barcode Generation Guide > Code 128 .NET WinForms Barcode Generator Lib
Download Barcode for .NET WinForms Trial

Code 128 .NET Window Forms Barcode Generator

How to Create QR-Code Barcodes in .NET Windows Applications / Windows Forms
  • Professional .NET Code 128 barcode component dll compiled 100% in Visual C#.NET
  • Highly compatible with various .NET IDEs, especially for Visual Studio 2005 or above versions
  • Provide complete user guide for generating & printing Code 128 barcodes for WinForms applications
  • Generate & draw Code 128 linear barcodes using .NET Windows Forms controller
  • Generate & print Code 128 barcode images using Visual C# or Visual Basic.NET free sample code
  • Encode & output Code 128 barcodes into image files (Gif, Png, Tiff, Jpeg, Bmp) or project memory
  • Support user-defined 1D Code 128 barcode settings, such as Code Set, dimension, image color, resolution and so on
  • Provide several cost-effective developer licenses for .NET Windows Forms barcoding applications
.NET Windows Forms Code 128 1D Barcode Overview
Code 128, a linear barcode symbology, is a very high-density barcode types, which specified in ISO/IEC 15417 (Second edition 2007-06-01) barcode standard. With BarcodeLib.com Code 128 .NET WinForms Barcode Component, developers can quickly generate and encode Code 128 1d barcodes into their .NET, C#, VB.NET windows applications.
Code 128 has three valid character sets, namely Code Set A, Code Set B, and Code Set C. In addition, each set has some special characters:
  • The last seven characters of Code 128 Code Sets A and B: Character values 96 - 102
  • The last three characters of Code 128 Code Set C: Character values 100 - 102
This page explains how to generate and save Code 128 barcodes in .NET WinForms, Visual C# & VB.NET class library. Please follow the guide to find out. Besides, you can get all detail properties of Code 128 from: .NET Code 128 bar coding parameters.
Install Code 128 Visual Studio .NET WinForms Barcode Library DLL
  1. Add Windows Forms Code 128 Project Reference.
    • Right click in "Solution Explorer" and select "Add Reference...".
    • Click "Browse" to find Barcodelib.Barcode.WinForms.dll in the unzipped file, and click "OK" button.
  2. Add Windows Forms Code 128 Barcode Control to Visual Studio Toolbox.
    • Right click in Toolbox and select "Choose Items...".
    • In the pop-up window, click "Browse..." to locate the dll Barcodelib.Barcode.WinForms.dll.
    • Click "OK" and now four items are listed in Visual Studio Toolbox:LinearWinForm, DataMatrixWinForm, QRCodeWinForm, and PDF417WinForm.

Generate Code 128 Barcode image in .NET Windows Forms Program
BarcodeLib.com windows Forms Code 128 .net barcode component is able to generate Code 128 images on windows form by draging & drop .NET Windows Form Controller. Below are sample steps.
  1. Add WinForms .NET Barcode Library DLL to your Visual Studio Toolbox.
  2. Drag & Drop LinearWinForm to your .NET windows form, and a Code 128 is generated on the form immediately.
  3. Right click on the created Code 128 and choose "Properties", then you can customize the barcode image properties.
Generate Code 128 Barcode Images Using C# & VB.NET Class Library
After adding the winforms dll to project reference , you can directly use the following Viusal C# or Visual Basic sample code for Code 128 generation in .NET class library.
     BarcodeLib.Barcode.Linear code_128 = new BarcodeLib.Barcode.Linear();
code_128.Type = BarcodeType.CODE128;
code_128.Data = "WinFormsCode128";

code_128.UOM = UnitOfMeasure.PIXEL;
code_128.BarWidth = 1;
code_128.BarHeight = 70;
code_128.LeftMargin = 11;
code_128.RightMargin = 11;

code_128.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

// Save Code 128 barcode image into your system
These Code 128 demo codes are compiled in Visual C# 2005 View Detail Code 128 C# Demo Code
     Dim code_128 As New BarcodeLib.Barcode.Linear()
code_128.Type = BarcodeType.CODE128
code_128.Data = "WinFormsCode128"

code_128.UOM = UnitOfMeasure.PIXEL
code_128.BarWidth = 1
code_128.BarHeight = 70
code_128.LeftMargin = 11
code_128.RightMargin = 11

code_128.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

' Save Code 128 barcode image into your system
These Code 128 demo codes are compiled in Visual Basic View Detail Code 128 VB.NET Demo Code
Code 128 .NET WinForms Barcode Generator DLL Supporting Barcodes
WinForms 1D Barcodes:
WinForms 2D Barcodes:
Code 128 .NET Windows Forms Barcode Control Also Supports 1D Barcodes: Codabar, Code 11, Code 2 of 5, Code 39, Code 128, Code 93, EAN 8, EAN 13, EAN 128/GS1 128, Interleaved 2 of 5, ITF14, MSI Plessey, Intelligent Mail (OneCode), Planet, Postnet, RM4SCC (British Royal Mail 4-State Customer Barcode), UPC-A, UPC-E.
Code 128 .NET Windows Forms Barcode Control Also Supports 2D Barcodes: Data Matrix, PDF 417, QR-Code.

See Also: Related Barcoding Tutorials

.NET Windows Forms Visual C# & Visual Basic Barcoding Tutorials
Barcode Creation Guide for Other .NET Applications: