Barcode scan

Barcode scan

Is it possible to achieve the following?
I want to add some barcodes in the windows applications. This barcode should be displayed when I click a button. I am new to this and wondering if someone could help.
If some sample code will be great!