Here we learn about how to generate QR Code Using Google API In Vb.Net
Step 1
Design a windows form as per below picture that contains Label, Textbox to get text for QR Code, and One Button for QR Code Generation and one PictureBox to show QR Code.
![]()
Step 2
Give textbox name as txtqrcode and button name as btnqrcode and picturebox name as picturebox1 and set picturebox width and height 300 and sizemode = stretchimage
Step 3
Google API Link for generating QR Code
https://chart.googleapis.com/chart?cht=qr&chs=QRWidthxQRHeight&chl=QRData
Step 4
Write following code in btnQRCode button's click event
VB
C#
byteArrayToImage() function code as below
VB
C#
Here in Google API height and weight is 300 * 300 and our PictureBox1 size is same 300 * 300
Step 5
Run your application, and type something to generate QR Code as per following
![]()
Step 6
After typing click on generate QR code button and your QR code is ready and shown into picturebox as following
![]()
When you scan this QR you can get exact data like 'uday dodiya QR code' or you can generate QR code for any data
Summary
Generating QR code using google API is so easy
Without using messagingtoolkit generate QR code