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.
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".
Copy files "qrcode.aspx", "qrcode.aspx.cs" from downloaded "barcode" folder to your VB.NET Windows Forms project folder.
Drag "QRCodeWinForm" from "Toolbox" to aspx page. Then a standard QR Code will be visible in your VB.NET WinForms project.
Adjust generated QR Code property settings within the "Properties" window or using following VB.NET class code.
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"
Use free VB.NET code below to generate QR Code in your Visual Studio .NET Windows Forms application.
Dim qrcode AsNew 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")