KA.Barcode Generator for .NET Suite
How to Create & Resize QR Code in VB.NET
Complete VB.NET source code to generate, print QR Code using Barcode Generator for .NET Control

QR Code Generator VB.NET: how to create, generate QR Code using vb.net with visual basic example source code

  • Easy-to-use QR Code Generator Control for VB.NET programs, VB.NET Web & Windows projects
  • 100% managed code written in Visual Basic.NET, easy integration into Visual Studio 2005/2008/2010
  • Other barcode solutions provided - Word barcode, Java barcode, Excel barcode, etc.
  • Comprehensive user manual for 2D QR Code generation in VB.NET IDEs
  • Accurate QR Code generation configured to ISO / IEC 18004 (2nd edition 2006-09-01)
  • Simple to draw, print QR Code barcode images in unit measurement of cm, inch, or pixel
  • Drawing, creating QR Code bar codes into 40 different version ranging from V1 to V40
  • Java EAN-8, Code 39 .NET, C# ISBN, C# ITF-14 & C# UPC-A can be created as well
  • Support customizing module size and image size for QR Code barcoding
  • Easy to control quiet zones of top, bottom, right and left surrounding QR Code symbols
KeepAutomation barcode creator component SDK for .NET is a powerful, reliable barcode generating component API for adding advanced QR Code barcode creation and printing features into you VB.NET applications, such as ASP.NET web pages, WinForms, Crystal Reports, VB.NET class library, etc. Here's a tutorial for resizing QR Code barcode in VB.NET; other tutorials about QR Code data encoding and image settings with VB.NET samples, please see:
QR Code Barcode Structure
QR Code

QR Code barcode (a.k.a Denso Barcode, Quick Response Code) is constructed of:

Function patterns:
  • Finder pattern
  • Separator
  • Timing patterns
  • Alignment patterns
Encoding region
  • Format information
  • Version information
  • Data and Error Correction codewords
Quiet zone on all four sides
QR Code Size Setting in with VB.NET Class

Install KA.Barcode Generator for .NET Suite into Projects

  1. 1.
  2. 2.
    Copy KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll to your VB.NET project folder
  3. 3.
    Open Microsoft Visual Studio, choose "Add Reference" in "Project"
  4. 4.
    Browse KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll
  5. 5.
    Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references
Copy those following VB.NET barcode onto you forms for QR Code generation & barcoding:
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology.QRCode
barcode.CodeToEncode = "QR Code"

Drawing QR Code Barcode with BarcodeUnit Pixel, Cm, or Inch

BarcodeUnit (URL: barcode-unit; Default: Pixel): it is the unit measurement for all size related settings in QR Code barcodes. User may change it with "Pixel", "Inch" and "Cm". Replace sample code with following one:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel

Generating QR Code Barcode with Version Property

QRCodeVersion (URL: qrcode-version; Default: V1): it is used for setting QR Code version from 21x21 (V1) to 177x177 (V40). Replace sample code with following one:
barcode.QRCodeVersion = KeepAutomation.Barcode.QRCodeVersion.V1

Creating QR Code with Specified X and Y (Bar Width & Bar Height)

X (URL: x; Default: 1): it is the width of the narrow bar in QR Code barcodes

Y (URL: y; Default: 50): it is the height of bars in QR Code barcodes.

Replace sample code with following one:
barcode.X = 3
barcode.Y = 3

Printing QR Code with Fixed BarCodeWidth and BarCodeHeight

BarCodeWidth (URL: barcode-width; Default: 0): it is the barcode width of QR Code barcodes.

BarCodeHeight (URL: barcode-height; Default: 0): it is the barcode height of QR Code barcodes.

Replace sample code with following one:
barcode.BarCodeWidth = 200
barcode.BarCodeHeight = 75

Painting QR Code with Quite Margin

TopMargin (URL: top-margin; Default: 0): it is the barcode image top margin in QR Code barcodes.

BottomMargin (URL: bottom-margin; Default: 0): it is the barcode image bottom margin in QR Code barcodes.

LeftMargin (URL: left-margin; Default: 0): it is the barcode image left margin in QR Code barcodes.

RightMargin (URL: right-margin; Default: 0): it is the barcode image right margin in QR Code barcodes.

Replace sample code with following one:
barcode.TopMargin = 8
barcode.BottomMargin = 8
barcode.LeftMargin = 6
barcode.RightMargin = 6