QR Code Image Sample - pqScan.com
.NET Barcode Creator WinForms Control Encoding Barcode Image in .NET WinForms Online Demo Download Trial Purchase Now

How to Generate Barcode Image

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

How to Generate Barcode in .NET WinForms

The pqScan Barcode Creator is a .NET component to generate common one-dimensional and two-dimensional barcodes. It allows barcode images to be created within the developer's own .NET Windows Form application. pqScan .NET Barcode Creator can work with Visual Studio 2005/2008/2010/2012/2013 and requires the .NET framework 2.0 (or above) to be installed on client computer to use this component.

Supported barcode types include QR Code, Data Matrix, Aztec Code, PDF 417, Code 128, Code 39, EAN-13, EAN-8, UPC-A.

Encoding barcode use .NET Barcode Creator Windows Forms Control

To use the pqScan Barcode Creator WinForms control, follow these steps:

  1. Download and unzip the Trial package to development computer.
  2. Add Barcode Creator WinForms Control to the Visual studio Toolbox.
    • In a WinForms application, open a Form in design mode.
    • Select View - Toolbox to display the Toolbox
    • Right click on the Components pane and select Choose Items...
    • In the dialog box Choose Toolbox Items, ensure the .NET Framework Components tab is displayed.
    • Push the Browse button and navigate to the "PQScan.BarcodeCreator.dll" file.
    • Ensure the checkbox of pqScan Barcode Creator WinForms Control "BarcodeWinControl" is checked.
  3. With a project's form open in design mode, drag the Barcode Creator component item from toolbox onto the form.

One instance of Barcode Creator Control in WinForms can render one barcode image. And the control appears on the form using default settings, developers can customize these settings to encode specific barcode.

Encoding barcode use .NET Barcode Creator component API

To generate barcode image using pqScan Barcode Creator in .NET WinForms class, follow these steps:

  1. Download and unzip the Trial package to development computer.
  2. Add "PQScan.BarcodeCreator.dll" to your .NET WinForms project reference.(The dll will be copied automatically to the project bin folder).
  3. Copy and paste the C# code below to your .NET WinForms class:
using System;
using System.Windows.Forms;
using PQScan.BarcodeCreator;

namespace BarcodeGenerateInWinforms
    publicpartialclassForm1 : Form
        public Form1()

            Barcode barcode = newBarcode();

            barcode.Data = "www.pqscan.com";
            barcode.BarType = BarCodeType.QRCode;
            barcode.Width = 200;
            barcode.Height = 200;



.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 128 Creator in Winforms Code 39 Creator in Winforms