Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > C# Barcode Generation Guide > Guide for C#.NET Code 11 Barcode Generation
Download Barcode for .NET Suite Trial

C#.NET Code 11 Barcode Generator SDK

Guide for C#.NET Code 11 Barcode Generation in ASP.NET & .NET WinForms
  • Fully developed in Visual C#, easy to install Code 11 barcode generator SDK into C# development environment
  • Create Code 11 barcode image in C# ASP.NET web applications and C# WinForms applications
  • Generate over 20 1D and 2D barcode images in C#.NET, including Code 11, Code 39, Code 128, QR Code, Data Matrix, etc
  • Easy to encode Code 11 barcode image to multiple image files or objects in Visual C# applications
  • Perfectly compatible with Code 11 barcode image generation as required in specification
  • Offer various royalty-free and permanent developer licenses to all of our clients
Characteristics of C#.NET Code11 Barcode
Code 11 is also known as USD-8. It was developed as a high-density numeric-only symbology.
Code 11 is able to encode the numbers 0 to 9, the dash symbol (-), as well as the start/stop characters.
Code 11 uses one or two weighted checksum digits. In general, only one checksum ("C") is used if the symbol length is less than 10 characters, but both "C" and "K" are used if the symbol is 10 characters or longer.
Generate C# Code11 Barcode Image in ASP.NET Web Applications
How to generate C# Code 11 barcode through ASP.NET web barcode control:
  1. Add reference (BarcodeLib.Barcode.ASP.NET.dll) to your Visual Studio Toolbox.
    • Right click ASP.NET Visual Studio Toolbox, select menu Choose Items...
    • In Choose Toolbox Items form, click button Browse..., and select BarcodeLib.Barcode.ASP.NET.dll.
    • You will see four items (LinearASPNET, DataMatrixASPNET, PDF417ASPNET and QRCodeASPNET).
  2. Copy "linear.aspx" and "linear.aspx.cs" in the unzipped package to your project folder.
  3. Drag and drop LinearASPNET under the Toolbox to your aspx page where the Code 11 barcode image is generated.
  4. Change your Code 11 barcode settings through the Properties window or by compiling the free C# source codes below.
     this.LinearASPNET1.Data = "2364852-102";
this.LinearASPNET1.Type = BarcodeLib.Barcode.BarcodeType.CODE11;
this.LinearASPNET1.AddCheckSum = true;

this.LinearASPNET1.BarWidth = 1;
this.LinearASPNET1.BarHeight = 60;
5. Run your project to see the generated Code 11 barcode image on your aspx page.
Generate C# Code 11 Barcode Image in .NET Windows Forms
How to generate C# Code 11 barcode image in .NET WinForms barcode control:
  1. Drag PixtureBox and Button to your Visual Studio windows program, e.g. Form1.
  2. Add reference (BarcodeLib.Barcode.WinForms.dll) to your C#.NET WinForms project.
  3. Generate Code 11 barcode image using the following C# sample codes.
     Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE11;
barcode.Data = "2364852-102";

Bitmap Code11 = barcode.drawBarcode();

this.pictureBox1.Image = Code11;
4. Finally, double click the button to see the generated Code 11 barcode image.
Supported C# Barcode Types
C# 1D Barcode Generation:
C# 2D Barcode Generation:
2D barcodes supported: Data Matrix, PDF 417, QR Code.