Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Thu Dec 05, 2013 5:16 pm

Hello to everybody,
could you post a simple example to how to generate a QR code in a picturebox or form ?
Thank you so much
Genex

genex1000
 
Posts: 1
Joined: Thu Dec 05, 2013 4:59 pm

Fri Dec 06, 2013 6:22 am

Hello Genex,

Thanks for your inquiry.
You could first drag a barCodeControl onto form, and then try Code1.
Code1
Code: Select all
            Me.barCodeControl1.Data="123456"
            Me.barCodeControl1.Type = BarCodeType.QRCode


You also could use a picturebox, please refer to Code2.
Code2
Code: Select all
Dim settings As New BarcodeSettings()
settings.Data = "123456"
settings.Type = BarCodeType.QRCode
Dim generator As New BarCodeGenerator(settings)
Me.pictureBox1.Image = generator.GenerateImage()


Best regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.BarCode

cron