Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET WinForms Barcode > .NET Windows Forms Barcode Generator Guide
Download Barcode for .NET WinForms Trial

.NET Windows Forms Barcode Generator Guide

Bar Codes Generation for .NET, C#, VB.NET Windows application development
  • Easy & Simple to generate barcodes in Windows Forms, Crystal Reports & RDLC Reports
  • Complete developer guide for .NET, C#, VB.NET professionals
  • Encode 1D and 2D barcodes in JPEG, GIF or PNG image format at fast speed
  • Completely build in managed C#, well designed and tested
  • Comprehensive .net barcode component, gain world-wide popularity for more than 10 years
  • In accordance with latest barcode symbology standards
  • Create linear barcodes, including Code39, Code128, GS1-128, Interleaved 2 of 5, EAN / UPC
  • Create 2d barcodes, including Data Matrix, PDF-417, & QR-Code
  • Provide cost-effective developer license, lifelong to use
This document is a guide of what & how you can do with .NET WinForms Barcode Generator component in your various .NET development environments.
.NET WinForms Barcode Generator - Supporting Symbologies
Create 1D Barcode Types:
Create 2D Barcode Types:
.NET WinForms Barcode Creates 2D (Matrix) Barcodes: Data Matrix, PDF417, QR Code.
.NET WinForms Barcode - Barcodes Generation through .NET Class

Install

  1. Add Reference BarcodeLib.Barcode.WinForms.dll component to your project reference.

Implement

The following C#.net code illustrates how to generate a Code-128 barcode image in C# class.
     BarcodeLib.Barcode.Linear barcode = new BarcodeLib.Barcode.Linear();
barcode.Type = BarcodeType.CODE39;
barcode.Data = "CODE39";
barcode.UOM = UnitOfMeasure.PIXEL;
barcode.BarWidth = 1;
barcode.BarHeight = 80;
barcode.LeftMargin = 5;
barcode.RightMargin = 5;
barcode.TopMargin = 5;
barcode.BottomMargin = 5;

barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
// save barcode image into your file system
barcode.drawBarcode("C:/barcode.png");
.NET WinForms Barcode - Barcodes Generation through .NET Windows Form Controller
  1. Add Reference BarcodeLib.Barcode.WinForms.dll to your project. There's no need to copy barcoding dll to your project bin folder because Visual Studio will do it for you during project compilation time.
    • In your .NET windows project, right click mouse over Refereces in your Solution Explorer window. Then click menu "Add Reference ...".
    • Add BarcodeLib.Barcode.WinForms.dll to your project.
  2. Add barcode library to your Visual Studio Toolbox.
    • Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox.
    • Right click Toolbox, click menu Choose Items...
    • Goto .NET Framework Components tab.
    • If no BarcodeLib component found, click Browse... button and select BarcodeLib.Barcode.WinForms.dll file.
    • Then sort "Namespace" column, you will find 4 components from BarcodeLib.Barcode.
    • Check component LinearWinForm, and its namespace is BarcodeLib.Barcode.
    • Check component DataMatrixWinForm, and its namespace is BarcodeLib.Barcode.
    • Check component PDF417WinForm, and its namespace is BarcodeLib.Barcode.
    • Check component QRCodeWinForm, and its namespace is BarcodeLib.Barcode.
    • Click "OK" button, you will find four components under "Common Controls": LinearWinForm, DataMatrixWinForm, PDF417WinForm, QRCodeWinForm.
  3. Now you can see the component displayed on Toolbox. Then, you can drag LinearWinForm on your form and change barcode setting through properties window.
Other Related .NET Barcoding Guide Articles