BizCode Barcode Generator for Winforms
The most robust & powerful barcode component for Microsoft .NET Windows Forms
Quick Overviews
  • Professional barcode control
  • Flexible controls provided
  • Support WinForms projects
  • Linear & 2D barcodes support
  • Winforms Data-binding support
How to Encode Code 39 Data in .NET WinForms
Barcode Generator for Winforms provides the most flexible group of components that enables Winforms applications to create and manage Code 39 barcodes and other 20+ linear & 2D dimensional barcodes in your Winforms applications.
Winforms Code 39 Barcode Generator also supports Code 39 extension barcodes to be created. Those generated Code 39 and Code 39EX barcodes are compatible with ISO Code 39 specification - ISO / IEC 16388 (2nd edition 2007-05-15). This document explains how to set Code 39 barcode image in Winforms, IIS and other tutorials of Code 39 data encoding and size setting:
Code 39 Data Related Properties

Symbology

With Barcode Generator for Winforms, users are allowed to encrypt Code 39 and Code 39 Extension barcode encodable character sets using Symbology property.

Winforms Code 39 Barcode Generator encodes:
  • Numeric data: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Uppercase letters: A – Z
  • Seven special characters: -, $, :, /, ., +
Winforms Code 39 Extension Barcode Generator encodes:
  • Standard ASCII characters 0-127 (default: ISO/IEC 646)

Code

With Barcode Generator for Winforms, users are allowed to control Code 39 and Code 39 Extension barcode data length using Code property.

ProcessTilde

With Barcode Generator for Winforms, users are allowed to encode some special characters for Code 39 and Code 39 Extension barcode using a tilde characters "~" using ProcessTilde property.
  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126 Strings from "~256" to "~299" are unused.

Check Digit Calculation

With Barcode Generator for Winforms, users are allowed to calculate and display an optional Modulo 43 check digits for Code 39 and Code 39 Extension barcodes as they wish using AddChecksum and DisplayChecksumDigit properties.

Human-readable Text

With Barcode Generator for Winforms, users are allowed to show human-readable text with customized text style under generated Code 39 and Code 39 Extension symbols DisplayText and Textfont properties.
Customize Code 39 Barcode Data in Winforms
Ensure have installed those programs before you encrypt Code 39 valid data in .NET Winforms:
  • Microsoft .NET Framework 2.0/3.0/4.0
  • Microsoft Visual Studio 2005/2008/2010 (Express, Professional & Standard Edition)
  • Barcode Generator for Winforms installed
Customize Code 39 Barcode Images in Windows Forms Using BarcodeControl
  1. Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
  2. Drag and drop the WinLinearBarcode control into the Forms;
  3. You will see a barcode image generated;
  4. Right click you mouse to activate barcode setting panel and choose Symbology to CODE39
  5. Select Symbology, Code, ProcessTilde,AddChecksum, DisplayChecksumDigit, DisplayText and Textfont respectively to customize your Code 39 barcodes.
Encode Code 39 Barcode Data in Winforms Using C#, VB.NET Class
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.CODE39;

// Encode Code 39 barcode with multiple length
barcode.Code = "0123456789";

// Display Code 39 barcode human-readable text with customized
font style

barcode.DisplayText = true;
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold);

barcode.drawBarcode2DataFile("c:/code-39-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()

' Encode Code 39 Extension barcode
barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE39EX

' Encode Code 39 Extension barcode with multiple length
barcode.Code = "Code 39"

' Display Code 39 barcode human-readable text with customized
font style

barcode.DisplayText = true
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold)

barcode.drawBarcode2DataFile("c:/code-39-ex-vb-net.gif")