Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET WinForms Barcode > .NET Windows Forms Barcoding Guide > Guide to Generate QR Code in VB.NET WinForms
Download Barcode for .NET WinForms Trial

WinForms QR Code Generation Using VB.NET

Professional VB.NET QR Code Barcode Generator & Encoder for Windows Forms Projects
  • Powerful QR Code barcode generator for WinForms, supporting VB.NET class language
  • Generate & print QR Code barcode images in Windows Forms applications using VB.NET
  • Create & save QR Code images from WinForms projects to gif, png, jpeg & bmp image files
  • Easy to set QR Code image properties using VB.NET class code in .NET Windows Forms application
  • Able to generate QR Code image with transparent background color in VB.NET Windows Forms
  • Able to draw & output generated QR Code barcodes in several ways using VB.NET class
Generate QR Code in VB.NET WinForms - Requirement
At the beginning, please make sure you have downloaded our ASP.NET Barcode Generator Library and installed respective programs.
How to Generate QR Code in WinForms Controller Using VB.NET
All QR Code barcode encoding features are compiled into a single strong-named ASP.NET Barcode Library DLL (BarcodeLib.Barcode.ASP.NET.dll). After downloading and unzipping the package, you will see this mature barcode generator control.
  1. Add "BarcodeLib.Barcode.WinForms.dll" to the "Toolbox" of your VB.NET WinForms project.
    Right click "Toolbox", select "Choose Items...", and locate "BarcodeLib.Barcode.WinForms.dll". After installing the VB.NET WinForms dll, you'll find four new-added components, including "QRCodeWinForm".
  2. Copy files "qrcode.aspx", "qrcode.aspx.cs" from downloaded "barcode" folder to your VB.NET Windows Forms project folder.
  3. Drag "QRCodeWinForm" from "Toolbox" to aspx page. Then a standard QR Code will be visible in your VB.NET WinForms project.
  4. Adjust generated QR Code property settings within the "Properties" window or using following VB.NET class code.
     Me.QRCodeWinForm1.Data = "BARCODELIB"
     Me.QRCodeWinForm1.ModuleSize = 2
     Me.QRCodeWinForm1.LeftMargin = 8
     Me.QRCodeWinForm1.RightMargin = 8
     Me.QRCodeWinForm1.TopMargin = 8
     Me.QRCodeWinForm1.BottomMargin = 8
     Me.QRCodeWinForm1.ECL =BarcodeLib.Barcode.QRCodeErrorCorrectionLevel.H
  1. Add "BarcodeLib.Barcode.WinForms.dll" to your Windows Forms VB.NET project "Reference".
    Right click at "Solution Explorer" window, then select "Add Reference...", and locate "BarcodeLib.Barcode.WinForms.dll"
  2. Use free VB.NET code below to generate QR Code in your Visual Studio .NET Windows Forms application.
     Dim qrcode As New QRCode()
     qrcode.Data = "www.barcodelib.com"
     qrcode.ModuleSize = 3
     qrcode.ECL = QRCodeErrorCorrectionLevel.H
     qrcode.ImageHeight = 87
     qrcode.ImageWidth = 87
     
     ' Save & draw generated QR Code image to your system
     qrcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg
     qrcode.drawBarcode("C:/vbnet-qrcode.jpeg")
More VB.NET class code for QR Code barcode Generation is provided here. If you need to use C# Code to generate QR Code for .NET Windows Forms, please see How to Encode QR Code in C#.NET WinForms application.
VB.NET WinForms QR Code Generator Supported Barcode Types
VB.NET Barcode Generator for WinForms can support almost all commonly used barcode types, including:
  • 1D Barcodes Generation in VB.NET WinForms: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN-8, EAN-13, GS1-128, Interleaved 2 of 5, ITF-14, MSI Plessey, Intelligent Mail, PLANET, POSTNET, RM4SCC, UPC-A, UPC-E.
  • 2D Barcodes Generation in VB.NET WinForms: Data Matrix and PDF-417. Please click "Go" to see each barcode generation details.
Support Linear Barcodes:
Support Matrix Barcodes: