KA.Barcode for .NET WinForms
How to Generate Codabar in .NET WinForms
How to generate & create linear Codabar barcode images in .NET WinForms, C#, VB.NET class library
  • Easy to integrate Codabar SDK into Microsoft Visual Studio 2005/2008/2010
  • Simply integrate dynamic Codabar barcodes into Microsoft .NET Windows applications
  • Simple to drag & drop Codabar generating control onto Windows forms
  • Generate Codabar barcodes with Visual C#, VB.NET programming
  • Multiple image formats support, including GIF, BMP, PNG, JPEG, TIFF, etc
  • Flexible sizing options include the adjustment X, Y dimension, quiet margin, wide/narrow ratio, etc
  • Mature and reliable barcode component used world-wide
  • Provide 100% C#.NET source code with purchased developer license
Codabar Barcode SDK for Winforms is an easy-to-use Codabar barcode generating &printing component, which can be used in Visual C#, VB.NET, Managed C++ and Borland Delphi for .NET and other .NET Framework that support Windows forms DLLs or controls. Codabar Barcode SDK for Winforms provides a comprehensive developer guide for creating and customizing Codabar barcodes with drag-and-drop implementation or C#, VB.NET class.
Codabar Overview in .NET WinForms Control
Codabar is also known as ABC Codabar, CodaBar, USD-4, NW-7, Code 2 of 7, Monarch, Code-27, Ames code, Rationalized Codabar, 2 of 7 Code, ANSI/AIM Codabar, Uniform Symbology Specification Codabar, USS Codabar, which is a self-checking linear barcode used by U.S. blood banks, photo labs, and on FedEx air bills.

Codabar Control for .NET WinForms Encodes

  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • - (Dash), $ (Dollar), : (Colon), / (Slash), . (Point), + (Plus)
  • Self-checking with no check digit shown in Text
Codabar Generation in .NET WinForms Control

How to Drag & Drop Codabar Generator to Windows Forms

  1. 1.
    In Visual Studio, right-click in "Toolbox" and select "Choose Items..."
  2. 2.
    In the pop-up window, click button "Browse..." and select "KeepAutomation.Barcode.Windows.dll"
  3. 3.
    Then, you'll see "BarCodeControl" in Visual Studio toolbox
  4. 4.
    Drag and drop "BarCodeControl" into the project forms and a Code 128 barcode is generated
  5. 5.
    Now, you can change barcode types and customize image settings in the "Properties" window

How to Insert Codabar into .NET WinForms Using C# or VB.NET

Using the C# or VB.NET sample code below to produce and integrate Codabar in .NET Windows Forms applications.
using KeepAutomation.Barcode.Bean;

BarCode codabar = new BarCode();
codabar.Symbology = KeepAutomation.Barcode.Symbology.Codabar;
codabar.CodeToEncode = "123-456-789";
codabar.X = 2;
codabar.CodabarStartChar = CodabarStartStopChar.A;
codabar.CodabarStopChar = CodabarStartStopChar.A;
codabar.WideNarrowRatio = 2.5;
Dim codabar As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

codabar.Symbology = KeepAutomation.Barcode.Symbology.Codabar
codabar.CodeToEncode = "123-456-789"
codabar.X = 2
codabar.CodabarStartChar = CodabarStartStopChar.A
codabar.CodabarStopChar = CodabarStartStopChar.A
codabar.WideNarrowRatio = 2.5
codabar.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()

How to Create Codabar with Start & Stop Char in .NET WinForms

Codabar has start/stop characters A, B, C, D appended on both sides using one wide bar and two wide spaces. The start/stop characters must be used in matching pairs and may not appear elsewhere in the barcode. Users can set this property by customizing "CodabarStartChar", "CodabarStopChar" repectively.
codabar.CodabarStartChar = KeepAutomation.Barcode.CodabarStartStopChar.A;
codabar.CodabarStopChar = KeepAutomation.Barcode.CodabarStartStopChar.A;
codabar.CodabarStartChar = CodabarStartStopChar.A
codabar.CodabarStopChar = CodabarStartStopChar.A