The sample source code below will teach you how to generate simple QR code in VB.NET. ByteScout QR Code is QR Code generation library. It provides full control on the quality, features and encoding. Can embed logo image right into QR Code itself. Batch barcode generation, and many special features like vCard or URL encoding are also supported and you can use it to generate simple QR code with VB.NET.
The SDK samples like this one below explain how to quickly make your application do generate simple QR code in VB.NET with the help of ByteScout QR Code. In order to implement the functionality, you should copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. This basic programming language sample code for VB.NET will do the whole work for you to generate simple QR code.
Free trial version of ByteScout QR Code is available on our website. Documentation and source code samples are included.
Imports Bytescout.BarCode Module Module1 Sub Main() ' Create and activate QRCode instance Using barcode As New QRCode() barcode.RegistrationName = "demo" barcode.RegistrationKey = "demo" ' Set barcode value barcode.Value = "ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890" ' Uncomment if you don't need margins 'barcode.Margins = New Margins(0, 0, 0, 0) 'barcode.DrawQuietZones = False ' Save barcode image to file barcode.SaveImage("result.png") End Using ' Open the image in default image viewer (for demo purpose) Process.Start("result.png") End Sub End Module