This is the most "native" way as it doesn't require installing third-party DLLs or an internet connection. You can use the VbQRCodegen library on GitHub, which is a single .bas file.
If GenerateQRCode(text, filename) Then
MsgBox "QR code generated successfully!", vbInformation
Else
MsgBox "Error generating QR code!", vbCritical
End If
End Sub
' Draw the Matrix
Picture1.Cls
Picture1.BackColor = vbWhite
Reed-Solomon Error Correction: The code above omits the Error Correction Codewords generation (the math is extremely complex in VB6). A scanner might read the code if it is perfect, but if any part is dirty or obscured, it will fail to scan because the redundancy data is missing.
Masking Patterns: Official QR standards require applying a "mask" to the data to prevent large blank areas. The example above places data linearly, which might confuse some older scanners.