Dynamic QR code in VB.Net is a very simple process in VB.Net. All you need to do is simply some text boxes and a button and then change their names as txtname, txt age, txtclass and btncreate and finally write the following code to generate a dynamic QR code in VB.Net.
Imports ThoughtWorks.QRCode.Codec
Public Class Form1
Private Sub btnCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreate.Click
Dim objqrcode As QRCodeEncoder = New QRCodeEncoder
Dim img As Image
Dim btm As Bitmap
Dim str As String
Dim thk As String = " Thank you:"
str = txtName.Text + " " + txtAge.Text + " " + txtClass.Text + thk
objqrcode.QRCodeScale = 2
img = objqrcode.Encode(str)
btm = New Bitmap(img)
btm.Save("qrimage.jpg")
PictureBox1.ImageLocation = "qrimage.jpg"
End Sub
End Class
If you would like to see more of those videos, let me know in the comments!
Note: Download the .dll file from :
https://www.nuget.org/packages/Though...
Click here to subscribe to my channel:
/ @sarfarazbhat
Click here for Visual Basic.Net Playlist:
• INSERT, READ, EDIT, DELETE (CRUD) VB.Net 2...
you can always download source code of my videos on my blog:
http://www.websofttuts.com/
Follow me on social media:
/ websofttuts
/ sarfarazbhat
https://plus.google.com/+sarfarazbhat
/ sarfarazbhat