Home  >  .NET Windows Forms Barcode Component  >  .NET WinForms Barcoding Tutorial  >  Code 128 Barcode Generator Control for .NET Windows Forms Project
.NET Windows Forms Code 128 Barcode Generator Component
.NET Windows Forms Code 128 Barcode Generator Component is an advanced barcode generating library, which is used for .NET Windows Forms project to create, generate Code 128, Code 128 A, Code 128 B, and Code 128 C using C# and VB class codes.
Overview - Code 128 Windows .NET Barcode Forms Control
The KeepDynamic Code 128 Barcode DLL Class Library for .NET Windows Forms help you integrate Code 128 barcode generating features into your .NET projects. The .NET Code 128 Barcode Control for Windows Forms can easily and quickly create Code 128 barcodes based on the latest Code 128 barcode standards. The .NET Windows Forms Code 128 Barcode control is easy-to-use and supports most popular .NET Development Tools like Microsoft Visual Studio 2005/2008/2010 and Express Editions.
Related barcode creating solutions for generating Code 128 barcode images:
Technologies of Code 128 Barcode Generator for Windows Forms
Generate Code 128 Barcode Images Using .NET WinForms Control
View more about Code 128 Barcode Properties of .NET Windows Forms Barcode Generator Library
How to Generate Code 128 Barcode Using .NET WinForms Control
There are two ways to generate & create Code 128 barcode images in .NET Windows Forms project. Following are detailed guidance for Code 128 barcode generation in Windows Forms Controller and Windows Forms class application.

For Code 128 Barcode Generation in Windows Forms Controller

  1. Add KeepDynamic.BarCode.Windows.dll to your Windows Forms project
  2. Add KeepDynamic.BarCode.Windows.dll to Visual Studio Toolbox, after which, you can see new items visible on the toolbox, that is, BarCodeControl, QRCodeControl, DataMatrixControl, and PDF417Control
  3. Drag & drop BarCodeControl to your .NET WinForms project and generated barcode image is standard Code 128 barcode
  4. Click generated Code 128 barcode images and adjust its properties values in the Properties window

For Code 128 Barcode Generation in Windows Forms Classes

  1. Add KeepDynamic.BarCode.Windows.dll to your Windows Forms project
  2. Add KeepDynamic.BarCode.Windows.dll to Visual Studio Toolbox
  3. Copy following C# or VB.NET class code to your WinForms project
Use C# code to generate Code 128 barcode image in Windows Forms project
// generate linear barcode object 
BarCode barcode = new BarCode();

// Set barcode type to Code-128
barcode.SymbologyType = SymbologyType.Code128;

// Enter encodable value to Code128 barcode
barcode.CodeText = "Code128";

// set Code 128 barcode image settings
// Set bar width of Code 128
barcode.X = 3;

// set Code 128 barcode image
barcode.BarCodeWidth = 450;
barcode.BarCodeHeight = 90;

// save generated barcode images to png image file using C#
barcode.drawBarcode("C://kdcode128.png");
Use VB.NET code to generate Code 128 barcode image in Windows Forms project
' generate linear barcode object 
Dim barcode As New BarCode()

' Set barcode type to Code-128
barcode.SymbologyType = SymbologyType.Code128

' Enter encodable value to Code128 barcode
barcode.CodeText = "Code128"

' set Code 128 barcode image settings
' Set bar width of Code 128
barcode.X = 3

' set Code 128 barcode image
barcode.BarCodeWidth = 450
barcode.BarCodeHeight = 90

' save generated barcode images to png image file using VB.NET
barcode.drawBarcode("C://kdcode128.png")
Please read more information on How to add barcode creating features into .NET projects using .NET Windows Forms barcode control
.NET WinForms Code 128 Barcode Generating Control Supported Barcode Types
.NET Code 128 Windows Forms Barcode Generator DLL & Control supports generating most common linear (1D) and matrix (2D) bar code standards, including: