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
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.
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.
Add barcode library to your Visual Studio Toolbox.
Drag QRCodeWinForm to your .NET windows form, and a QR Code is painted on the form.
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?
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 qrbarcode.drawBarcode("c:/qrcode-csharp.png");