Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET WinForms Barcode > Windows Forms Barcode Generation Guide > Intelligent Mail / OneCode Generating & Printing for .NET WinForms Project
Download Barcode for .NET WinForms Trial

.NET Windows Forms OneCode Barcode Generator

OneCode Barcode Generation in .NET WinForms Using C# & VB Class Codes
  • 100% meet requirements of latest OneCode barcode symbology standards
  • Easily add OneCode barcoding features in Visual Studio .NET WinForms programs
  • Easy to drag and drop 1d & 2d controls to .NET Windows application form
  • Create .NET Windows Forms OneCode barcode images in C# & VB classes
  • Create customized barcode images by changing settings of barcode properties
  • Encode OneCode barcode images into multiple file formats with .NET WinForms Barcoding SDK
  • Provide perdurable developer licenses to all .NET users with onetime payment
.NET Windows Forms OneCode Barcode Description
Intelligent Mail Barcode (OneCode) is also known as USPS OneCode Solution or USPS 4-State Customer Barcode (4CB, 4-CB, or USPS4CB).
It combines routing ZIP Code information and tracking information into a single 4-state code. It effectively encodes data from POSTNET and PLANET barcodes into a single barcode while providing a greater range of tracking data.
It is used in USPS mainstream. And the next generation of USPS barcode technology is used to sort and track letters and flats.
Drag and Drop OneCode Barcode Generation DLL to .NET WinForms
  1. Add BarcodeLib.Barcode.WinForms.dll to your Visual Studio Toolbox and (QRCodeWinForm, DataMatrixWinForm, PDF417WinForm and LinearWinForm) four components are visible under Toolbox.
  2. Drag component LinearWinForm to Form1 window.
  3. Choose OneCode barcode type from Properties window, and change other settings of OneCode barcode.
  4. Run the project and you will see the generated OneCode barcode image.
Use C# & VB Class to Generate OneCode Barcode Image in .NET WinForms

OneCode Barcode Generation Using C# & VB .NET Class

First of all, you should add reference (BarcodeLib.Barcode.WinForms.dll) to your .NET WinForms project. Then, it comes to codes compilation.
Demo codes for generating OneCode barcode in C#.NET Windows Forms:
     BarcodeLib.Barcode.Linear onecode = new BarcodeLib.Barcode.Linear();
onecode.Type = BarcodeType.ONECODE;
onecode.Data = "3625481202366572001647852";
onecode.AddCheckSum = false;
onecode.InterGap = 1;

onecode.UOM = UnitOfMeasure.INCH;
onecode.BarWidth = 0.025f;
onecode.BarHeight = 0.165f;
onecode.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;

//Save OneCode barcode image into your system;
Demo codes for generating OneCode barcode in VB.NET Windows Forms:
     Dim onecode As New BarcodeLib.Barcode.Linear()
onecode.Type = BarcodeType.ONECODE
onecode.Data = "3625481202366572001647852"
onecode.AddCheckSum = False
onecode.InterGap = 1

onecode.UOM = UnitOfMeasure.INCH
onecode.BarWidth = 0.025F
onecode.BarHeight = 0.165F

onecode.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg

'Save OonCode barcode image into your system
.NET Windows Forms Barcode Images
WinForms 1D Barcodes:
WinForms 2D Barcodes:
.NET WinForms Barcode Generator DLL supports 2d barcodes: Data Matrix, PDF 417, QR-Code.

See Also: Related Barcoding Tutorials

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