Open your Visual Studio, right click in Toolbox windows and select bar choose item.
Then, click browse and find Marcobarcode.Winforms.dll, select the dll.
After selection, you will find barcodewin in the toolbox, drag and drop it in component tab.
First, install Winforms.NET Barcode generator control.
Second, add the Winforms.NET Barcode generator control to your visual studio.
Drag and drop linearwinform, DataMatrixwinform, PDFwinform or QRcodeWinform to your Windows forms.
The four choices contain all of the barcodes that can be generated for .NET Windows Form.
Code:
BarCode barcode = new BarCode();
barcode.Symbology = Symbology.QRCode;
barcode.X = 3;
barcode.Y = 3;
BarcodeImageHeight = 175;
BarcodeImageWidth = 175;
barcode.CodeToEncode = "QRCode";
barcode.generateBarcodeToImageFile ("C://qrcode.gif");