QR Code Image Sample - pqScan.com
.NET Code128 Barcode Creator Windows Forms Control Encoding Code 128 Image in .NET WinForms Online Demo Download Trial Purchase Now
.NET
Winforms
ASP.NET C#-VB

How toGenerate Code128 in .NET Winforms

back to home  >  .NET Barcode Generator SDK  >  Generate Barcodes in Winforms  >  Generate Code128 in Winforms

.NET Winforms Code128 Creator is one of the barcode generation function in pqScan Barcode Creator For Winforms .NET. Besides having the ability of creating Code-128 in Winforms, it provides create some other type of barcodes: QR Code, Aztec Code, EAN-13 etc.

Encoding Code 128use .NET Barcode Creator Windows Form Control

pqScan .NET Barcode Creator Winforms Control is a component that can generate a Code 128 barcode for you. To save time and energy, Barcode Creator Winforms Control is the best choice of you. Now, we will introduce you how to use it:

  1. Download and unzip the Trial package to development computer.
  2. Add Barcode Creator Winforms Controlto the Visual studio Toolbox.
    • Open your .NET Windows Forms project, display the Toolbox pane.
    • Right click on the Toolbox and select Choose Items...
    • In the dialogChoose Toolbox Items, change to the.NET Framework Components tab.
    • Push the Browse button and navigate to the "PQScan.BarcodeCreator.dll" file.
    • Ensure the checkbox "BarcodeWinControl" is checked.
  3. View inform's design mode, drag the Barcode Creator component item from toolbox onto the form.
  4. Run your .NET Winforms application, and a Code128 barcode image would render on the form.

Generating Code-128 use .NET Barcode Creator component API

pqScan Barcode Creator provide flexible methods to generate Code 128, which contains render Code128 in a local file, in Stream object, in Bitmap object and into byte array. It may meet nearly all your needs. Before coding, just a little work:

  1. Download and unzip the Trial package to development computer.
  2. Reference "PQScan.BarcodeCreator.dll" to your .NET Winforms programming.(The DLL will be copied automatically to the project bin folder).
  3. Adding following C# sample code into your .NET Windows From class:
using System;
using System.Windows.Forms;
using PQScan.BarcodeCreator;

namespaceCode128GenerateInWinforms
{
    publicpartialclassForm1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            Barcode code128 = new Barcode();

            code128.Data = "123456789";
            code128.BarType = BarCodeType.Code128;
            code128.Width = 200;
            code128.Height = 100;
            code128.ShowText = true;

            code128.CreateBarcode("code128-winforms.bmp");
        }
    }
}

generate code128 in .net winforms

.NET Barcode Creator QR Code Creator in Winforms Data Matrix Creator in Winforms PDF 417 Creator in Winforms Aztec Code Creator in Winforms EAN 13 Creator in Winforms EAN 8 Creator in Winforms UPC A Creator in Winforms Code 39 Creator in Winforms