Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET WinForms Barcode > Windows Forms Barcode Generation Guide > .NET WinForms Code 2 of 5 Barcode Generation Guide
Download Barcode for .NET WinForms Trial

.NET WinForms Code 2 of 5 Barcode Generation Tutorial

Generate Code 2 of 5 Barcode in .NET WinForms Using Visual C# & VB Class
  • Undoubtedly compatible with multiple .NET IDEs, especially for VS 2005 or later versions
  • Able to generate Code 2 of 5 barcode image using Visual C# in Windows Forms
  • Capable of generating Code 2 of 5 barcode image using Visual Basic in .NET WinForms
  • Easy to drag and drop linear and two-dimensional barcode controls to WinForms project
  • Print and output Code 2 of 5 barcode image into Gif, Tiff, Png, Jpeg and Bmp formats
  • Allow users to change various Code 2 of 5 image properties in .NET WinForms applications
Prominent Attributes of Code 2 of 5 Barcode in .NET WinForms
Code 2 of 5 is a simple low-density numeric symbology comprising of any number of digits, also known as Code 25, Industrial 2 of 5, IATA 2 of 5, Data Logic 2 of 5, Matrix 2 of 5, COOP 2 of 5.
Code 2 of 5 may include an optional modulo 10 check digit. This is not required as part of the symbology, but rather may be implemented in a user program to improve the accuracy of the symbology.
How to Produce .NET WinForms Code 2 of 5 Barcode Image Through Control
  1. Download the free trial package of Barcode Generator Lib for .NET WinForms and unzip it.
  2. Add reference (BarcodeLib.Barcode.WinForms.dll) to the Toolbox of your Visual Studio.
  3. Drag LinearWinForm to your .NET Windows Forms project in VS.
  4. Choose Code 2 of 5 barcode under Type item of the Properties window, through which other settings of your barcode image can be changed.
  5. Debug for the purpose of viewing the generated Code 2 of 5 barcode image.
How to Produce .NET WinForms Code 2 of 5 Barcode Using C# & VB Class
  1. Add reference (BarcodeLib.Barcode.WinForms.dll) to your VS.NET WinForms project.
  2. Compile source codes for generating Code 2 of 5 barcode image in .NET Windows Forms using C# and VB.
How to generate Code 2 of 5 barcode image in .NET WinForms using C# sample codes
     BarcodeLib.Barcode.Linear code25 = new BarcodeLib.Barcode.Linear();
code25.Type = BarcodeType.CODE2OF5;
code25.Data = "1452781224";

code25.UOM = UnitOfMeasure.INCH;
code25.BarWidth = 0.01f;
code25.BarHeight = 0.3f;

code25.ImageFormat = System.Drawing.Imaging.ImageFormat.Bmp;

// Save Code 2 of 5 barcode image into your system;
code25.drawBarcode("c:/code25.bmp");
How to generate Code 2 of 5 barcode image in .NET WinForms using VB sample codes
     Dim code25 As New BarcodeLib.Barcode.Linear()
code25.Type = BarcodeType.CODE2OF5
code25.Data = "1452781224"

code25.UOM = UnitOfMeasure.INCH
code25.BarWidth = 0.01F
code25.BarHeight = 0.3F

code25.ImageFormat = System.Drawing.Imaging.ImageFormat.Bmp

' Save Code 2 of 5 barcode image into your system;
code25.drawBarcode("c:/code25.bmp")
Other Barcode Types for .NET Windows Forms
WinForms 1D Barcodes:
WinForms 2D Barcodes:
2D barcodes enclosed: Data Matrix, PDF 417, QR-Code.



See Also: Related Barcoding Tutorials

.NET Windows Forms Visual C# & Visual Basic Barcoding Tutorials