VB.NET

QR code generator using VB.NET

About QR Code Generator Project Using VB.Net Free Download

This QR code generator using VB.NET is a simple program that generates text in a QR code using the Email Toolkit QR code and develops using VB.NET. It also allows you to export the QR code as an image and automatically save it to your Documents folder with the file name equivalent to the text box. The QR Code can be useful in certain software depending on the logic you will use.

For example, in an inventory system, you can generate a QR code for each product or item and create a tracking function with a QR code scan. In this way, the system user will have a better experience using the system, and it can also help prevent typing errors and the user can quickly track the item.

Features of QR Code Generator using VB.NET

  • Generate a QR code
  • Export QR code as image

Tools used:

Library used

MessagingToolkit.QRCode

Screenshot

QR code generator using VB.NET

The code below is what I used to generate a QR code from the entered text and display the code in the image box.

	Private Sub btnGenerate_Click(sender As Object, e As EventArgs) Handles btnGenerate.Click
        Try
            Call qrcodeGen()
 
        Catch ex As Exception
            MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Information)
        End Try
    End Sub
 
    Private Sub qrcodeGen()
        Try
            Dim qrCode As New QRCodeEncoder
            qrCode.QRCodeEncodeMode = QRCodeEncoder.ENCODE_MODE.BYTE
            qrCode.QRCodeErrorCorrect = QRCodeEncoder.ERROR_CORRECTION.L
            Me.PictureBox1.Image = qrCode.Encode(Me.txtCode.Text, System.Text.Encoding.UTF8)
 
 
        Catch ex As Exception
            MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Information)
        End Try
    End Sub

And to export the QR code as an image and automatically save it to the Documents folder, this is the code I used.

	Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click
        Try
            If Me.PictureBox1.Image IsNot Nothing Then
                Me.PictureBox1.Image.Save(IO.Path.Combine(My.Computer.FileSystem.SpecialDirectories.MyDocuments, Me.txtCode.Text & ".jpg"))
                MessageBox.Show("QR is successfully saved.")
            End If
        Catch ex As Exception
            MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Information)
        End Try
    End Sub

How to run

Requirements:

Facility

  1. Extract downloaded source code zipper deposit.
  2. Locate THE Solution file in the extracted source code. The file is known as “QR code generator.sln”.
  3. Open the solution file with your MS Visual Studio software.
  4. Press THE “F5” key on your keyboard to execute the Program.

I hope that QR code generator program will help you in your future projects.


Related projects: CRUD Operation using PHP MySQLi with DataTable and PDF Generator using TCPDF, Complete Lesson Planning System (Timetable Generator) using Genetic Algorithms in C# and MS SQL, Odd Number Generator in PHP, Random Number Generator in C#

Download here

 

ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ

Soon, there will be articles covering various topics, such as:

Insurance, Loans, Mortgage, Attorney, Credit, Lawyer, Donate, Degree, Hosting, Claim, Conference Call, Trading, Software, Recovery, Transfer, Gas/Electicity, Classes, Rehab, Treatment, Cord Blood, Best mesothelioma lawyer, Truck accident lawyer, Buy life insurance online, Business VoIP provider, EMR software for clinics, Structured settlement companies, motorcycle injury lawyer, motorcycle injury attorney, spinal cord injury attorney, birth injury attorney, auto accident injury attorney, spinal cord injury lawyer, car injury attorney, motorcycle accident injury attorney, catastrophic injury lawyer, birth injury lawyer, workplace injury attorney, motorcycle injury attorneys, head injury lawyer, personal injury attorneys, traumatic brain injury attorney, train accident lawyer, brain injury attorney, auto injury attorney, serious injury attorney, personal injury lawyer, truck injury lawyer, injury attorneys, back injury lawyer, injury lawyer near me, injury lawyer,

If you would like to see these articles, please write so in the comments.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Auto Browse System