How to create and print 1D/2D barcode for .NET Applications using Avapose Barcode Library
.NET Barcode Generator Control Manual
  • Easy to use .NET Barcode component for .NET Framework 2.0/3.0/3.5/4.0
  • Support VB.NET, C#, Managed C++ and Borland Delphi for .NET
  • Generate flexible linear/1D, 2D and postal barcode images in .NET projects
Barcode .NET WinForms > Barcode in .NET WinForms
Generate and Print Barcode Image for .NET Applications
Avapose.Barcode for .NET Winforms control is an intelligent and sophisticated .NET control library which prints common linear and matrix barcodes in .NET Winforms. It integrates with .NET Class, Console Applications as well. You could install it in their projects with simple X-copy. The strong named and digitally signed assemblies in it could be retrieved by your project with no trouble. And the source code of this dll is provided by
Avapose.Barcode for .NET Winforms control could be used to draw graphic objects on forms, and it could also encode barcodes in Gif, Png, Tiff, Jpeg, or Bmp files. It could be applied as a DLL without being loaded on windows. You can make a complete control of the DLL using C#.NET or VB.NET. Generation samples are provided.
The integrated Avapose .NET Barcode Generator allows the generated barcode images to be customized. Scaling, rotation, aligning, and coloring functions are included in the generator.
Barcode Generating Component for .NET projects - Supported Barcode
2D Barcodes:
QR Code

PDF 417 Data Matrix
1D Barcodes:
Codabar Code 11 Code 25 Code 39 Code 93
Code 128 EAN 8 EAN 13 EAN 128 Identcode
Onecode Interleaved 25 ISBN ISSN ITF-14
.NET WinForms Barcode Generator Control - Barcode Generation

.NET Barcode Generator System requirements

Before generating barcode in .NET, you need to install:
  • Windows 7, Windows Vista, or Windows XP
  • .NET 2.0, 3.0 or later version
  • Microsoft Visual Studio 2005/2008/2010
  • Avapose.Barcode for .NET Winforms

Install and register .NET Forms barcode creator component in .NET template projects

  1. Create a new project in Visual Studio;
  2. Copy Avapose.linearbarcode.winforms.dll or Avapose.matrixbarcode.winforms.dll to your project folder; (You do not need to copy .dll to .NET bin directory, because Visual Studio will do so)
  3. Add LinearWinControl or MatrixWinControl to your Visual Studio Toolbox;
  4. Find Component LinearWinControl or MatrixWinControl in the Toolbox, then drag and drop it to your forms;
  5. Activate the Property Window and change LinearBarcode or MatrixBarcode to your target barcode type;
  6. To fit possible requirements, customize the barcode image using related properties.
(For more features with detailed information, see Linear Barcodes Tutorial and 2D Barcodes Tutorial)

Create and print 1D/2D barcode image in C#.NET and VB.NET using Avapose.Barcode Creating Library

  1. Create a new project in Visual Studio;
  2. Add Avapose.linearbarcode.winforms.dll or Avapose.matrixbarcode.winforms.dll to the project reference;
  3. Copy the following sample code to the project for a quick barcode generation, you can make further customization using related properties:

C# code

using Avapose.linearbarcode
Linear Code39 = new Linear();
Code39.LinearBarcode = LinearBarcode.Code39
Code39.BarcodeData = "01234567";
Code39.BarcodeWidth = 175;
Code39.BarcodeHeight = 50;
Code39.ResizeBarcode = true;
Code39.DrawBarcodeImage("c:\\ code39.gif");

VB code

Dim Code39 As Avapose.linearbarcode.Linear = New Avapose.linearbarcode.Linear()
Code39.LinearBarcode = Avapose.linearbarcode.LinearBarcode.Code39
Code39.BarcodeData = "01234567"
Code39.BarcodeWidth = 175
Code39.BarcodeHeight = 50
Code39.ResizeBarcode = True
Code39.DrawBarcodeImage("c:/code 39.gif")
Testimonial for .NET Barcode Generator for Winform
We bought your product .NET Barcode Generator Control for Winform a few weeks ago, and it works pretty well!
Carlos Louis, Eureka Software Ltd, UK.