I think you need two products. One is a barcode generator and the other one is barcode reader. And you can integrate those two dlls based on your own needs.There are several ways to generate barcodes in .net.
Both asp.net or WinForms are supported two same ways:
1,Drag and drop
2, Class library.
And you can easily create and print barcode images , meanwhile, you can adjust its properties,inlcuidng its size, barcode output resolutions or other parameters.
Feel free to try, hope it helps!