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

.NET WinForms QR Code Generator Library

How to Create QR-Code Barcodes in .NET Windows Applications / Windows Forms
  • High-quality barcode control for .NET, built completely in Visual C#.NET
  • In accordance with .NET Framework 2.0 and later versions
  • Support Microsoft Visual Studio 2005 / 2008 / 2010 / 2012 for development
  • Simple to draw QR Codes on .NET Windows Forms with 2D control drag-n-drop
  • Generate QR Code 2D barcode images in WinForms project with C# or VB.NET programming
  • Various QR Code settings available like ECI, ECL, Version, image format, size, resolution...
  • Created QR Code barcodes are readable and comply with almost all printers
.NET Windows Forms QR Code Barcode Introduction
QR-Code is a 2D / two-dimensional symbology also known as Quick Response Code, Denso Barcode, QRCode, JIS X 0510, ISO/IEC 18004.
Compatibility: Barcode for ASP.NET control dll is compatible with ISO/IEC 18004 (Second Edition 2006-09-01) bar code symbology specification for QR Code printing. Thus QR Code images generated are readable for all scanners / barcode recognition tools.
This page will tell you how to easily create QR Code barcodes in .NET WinForms and other projects, such as Visual C# & VB.NET class library. Please follow the guide to find out. Meanwhile, you can refer to .NET QR Code bar coding properties to obtain all QR Code user-defined parameters.
How to Install QR Code .NET WinForms Bar Code Generator
  1. Add 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 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 VS Toolbox: QRCodeWinForm, DataMatrixWinForm, LinearWinForm, and PDF417WinForm.

How to Create QR-Code Bar Codes in .NET Windows Forms Applications?
BarcodeLib QR Code Windows Forms .NET barcode generator supports drawing QR-Code images in .NET windows form. Here is a sample for you to create QR Code through .NET windows form controller.
  1. Add barcode library to your Visual Studio Toolbox.
  2. Drag QRCodeWinForm to your .NET windows form, and a QR Code is painted on the form.
  3. Right click on the QR Code, and you can adjust QR Code images in the right-side Properties table.
How to Generate QR Code Barcode in .NET WinForms using C#, VB.NET Class?
To create QR Code barcode images in C# and VB.NET class library, you need to add the dll to reference first.
Given below are the C# and VB.NET sample code for QR Code printing in .NET class library. After installation, please copy to your project for a barcoding test.
     BarcodeLib.Barcode.QRCode qrbarcode = new BarcodeLib.Barcode.QRCode();
// Select QR Code data encoding type: numeric, alphanumeric, byte, and Kanji to select from.
qrbarcode.Encoding = BarcodeLib.Barcode.QRCodeEncoding.Auto;
qrbarcode.Data = "123456789012";

// Adjusting QR Code barcode module size and quiet zones on four sides.
qrbarcode.ModuleSize = 3;
qrbarcode.LeftMargin = 12;
qrbarcode.RightMargin = 12;
qrbarcode.TopMargin = 12;
qrbarcode.BottomMargin = 12;
qrbarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

// More barcode settings like ECI, FNC1, Structure Append, etc.

// Save QR Code barcode image into your system
Above QR code sample code written in Visual C# 2005 View More QR Code C#.NET Sample Code
     Dim qrbarcode As BarcodeLib.Barcode.QRCode     
qrbarcode = New BarcodeLib.Barcode.QRCode()
qrbarcode.Data = "123456789"

qrbarcode.ModuleSize = 2
qrbarcode.LeftMargin = 8
qrbarcode.RightMargin = 8
qrbarcode.TopMargin = 8
qrbarcode.BottomMargin = 8

qrbarcode.Encoding = BarcodeLib.Barcode.QRCodeEncoding.Auto
qrbarcode.Version = BarcodeLib.Barcode.QRCodeVersion.V1
qrbarcode.ECL = BarcodeLib.Barcode.QRCodeErrorCorrectionLevel.L
qrbarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

' More barcode settings like ECI, FNC1, Structure Append, etc.

' Save QR Code barcode image into your system
Above qr code sample code written in Visual Basic View More QR Code VB.NET Sample Code
.NET WinForms Barcode Generator DLL Supporting Symbologies
WinForms 1D Barcodes:
WinForms 2D Barcodes:
.NET WinForms Barcode Lib Generates Linear Barcode Symbologies: 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.
.NET WinForms Barcode Lib Generates Matrix Barcode Symbologies: Data Matrix, PDF 417, QR-Code.

See Also: Related Barcoding Tutorials

.NET Windows Forms Visual C# & Visual Basic Barcoding Tutorials
.NET Windows Forms Visual C# & Visual Basic QR Code Barcoding Tutorials