Code 2 of 5 for .NET WinForms
Code 2 of 5 Winforms Generator - Overview
  • Code 2 of 5 bar code image generator for Winforms in .NET project
  • A clear structured and strongly named DLLs
  • Compatible with Window Control Library and Web Control Library in .NET
  • Support Windows application, console application, and class library
  • Compute check digits for Code 2 of 5 automatically
  • Increase the white spaces around the symbol
  • Supported by .NET 2.0 and later versions
Code 2 of 5 - Brief Introduction

The installation of Code 2 of 5 Winforms Generator into Winforms is straightforward. Dynamic Code 2 of 5 could be generated easily using Code 2 of 5 Winforms Generator. Code 2 of 5 Winforms Generator could be used to draw Code 2 of 5 in Windows applications. At the same time, it could be add to Winforms to stream Code 2 of 5 barcode image via Winforms.
Code 2 of 5 Winforms Generator - Generating Sample Code

1. How to generate Code 2 of 5 barcodes with Visual C# .NET


using BusinessRefinery.Barcode;

// construct a linear barcode object

Linear winformscode25 = new Linear();

// set linear barcode symbology to be code25

winformscode25.Symbology = Symbology.code25;

// set UPC-A code text to encode

winformscode25.Code = "Code 2 of 5";

//draw barcode and save into image file in gif format

winformscode25.drawBarcode2ImageFile("code25-in-winformscsharp.gif");


2. How to generate Code 2 of 5 using Visual Basic in .NET


// construct a linear barcode object

Dim winformscode25 As BusinessRefinery.Barcode.Linear

winformscode25 = New BusinessRefinery.Barcode.Linear()

// set linear barcode symbology to be code25

winformscode25.Symbology = BusinessRefinery.Barcode.Symbology.code25

// set UPC-A code text to encode

winformscode25.Code = "Code 2 of 5"

//draw barcode and save into image file in gif format

winformscode25.drawBarcode2ImageFile("code25-in-winformsvb.gif")




Quick Links