Barcode C# > Barcode in C# > Code 39
Windows Forms .NET Barcode Generation SDK
How to Integrate Code 39 Barcode Images in .NET WinForms Application
Code 39 barcode professional is a flexible .NET class library which designed to be used in Windows Forms. This mature barcode generator lets you easily add barcode generation and printing capabilities to your C# .NET applications. It supports Microsoft Visual Studio and other .NET development environments. Royalty-free, perpetual license is provided to acquire source code.
Brief Introduction of Code 39
Code 39 is a discrete and self-checking linear barcode which was first developed in 1974. Code 39 is also known as Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3. Each Code 39 contains 9 elements which including 5 bars and 4 spaces. Character set of Code 39 is composed of uppercase letters (A through Z), numeric digits (0 through 9) and a number of special characters (-, ., $, /, +, %, and space). Character asterisk is used for both start and stop characters.
Features & Benefits of Code 39 C# .NET WinForms Generator
Supported .NET Tech
Code 39 barcode generator for Window Forms supports barcode generation in C#, Managed C++ and Delphi in .NET. This barcode generation SDK is 100% managed code, strong named and signed for performance and stability. Advanced feature like data-binding scenarios is supported.
Supported IDE for .NET
This Code 39 WinForms control for C# .NET is fully compatible with .NET Framework 2.0, 3.0, 3.5 or greater. You could use barcode control to generate barcode images by using C# codes in Visual Studio 2005, 2008 and 2010. And common operating systems including Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP are supported by this generation library.
Barcode Generation of Code 39 in WinForms
Extended barcode support: In order to encoding more types of characters, extended Code 39 was developed. Extended Code 39 could easily encode lower-case characters while Code 39 only deals with upper-case letters. Extended Code 39 helps you to encode all 128 ASCII characters.
Human readable text setting: Users are entitled to enable or disable the human readable text under the created barcode image. The Code 39 barcode generator for C# .NET could compute the checksum digit automatically when you enable the "EnableCheckSum" property. Check digit is also could be displayed or hide according to your requirement.
Barcode images support: High quality of barcode images are created in JPEG, GIF, BMP, PNG, and TIFF formats. You could rotate the Code 39 images in 4 angles (0, 90, 180, 270 degrees).
Flexible size setting: Parameters including X, Y-dimension, wide-to-narrow ratio, I & N, margin size of the images generated by the.NET WinForms control are highly customizable.
Standard compatibility: This barcode professional helps you create Code 39 which fully compatible with ISO / IEC 16388 specification.
Parameters Information of Code 39 in WinForms
Basic Setting of Code 39 in C# .NET
"Data" property lets you set the data to encode. It is easy to change left, right, top and bottom margins of images by set the properties. Valid value includes "MarginLeft", "MarginRight", "MarginTop" and "MarginBottom". Set "EnableCheckSum" to true, the control will calculate the checksum automatically. "X" and "Y" properties refer to the width and height of module. "Resolution" refers to image resolution.
It is easy to rotate barcode images in 4 angels by setting angle property, valid values includes "Angle.Degree0", "Angle.Degree90", "Angle.Degree180", and "Angle.Degree270". "ShowCode39StarStop" helps you to apply a * in the beginning and end of barcode text.
Text setting for Code 39 in C#.NET
Set “ShowText” to true, human readable text under barcode will be displayed. By setting "TextFont" property, human readable text font will be changed accordingly. The space between barcode and text could be set by changing "TextMargin" property.
Format setting for Code 39 in C#.NET
It is easy to create barcode images in Jpeg, Png, Tiff, Bmp, Emf, Exif, Icon and Memory Bmp by adjust the "ImageFormat" property.
I & N Setting of Code 39 in C#.NET
Code 39 barcode generator for Winforms allows you to customize the I & N property of Code 39. "I" refers to the space between 2 characters while "N" refers to the wide/narrow ratio.
How to Create Code 39 in C# .NET WinForms Application
Code 39 barcode generation SDK for Winforms allows different implementation methods.
Code 39 Drag-and-drop Implementation
First open your C# project in Visual Studio and display your toolbox. You just click the "Choose Item" button and then select "Browse" in the Choose Toolbox Items dialog. Find the C#.NET barcode dll and then click "OK". Now you could find the barcode items in the section of the Tools Palette. When you drag and drop Barcode items from Visual Studio Toolbox, visual studio will show you the barcode image to be rendered.
Code 39 C#.NET Classes Implementation
Open your C# project in Visual Studio after placing the generation dll to your project folder. Select the Code 39 barcode generation dll when you add reference. In order to create barcode by adding C# code, you need to right click the form and choose "view code" in the list.