Generate Code 128 in Windows Forms Using .NET

17 Dec

Generate Code 128 in Windows Forms Using .NET

Code 128 is capable to encode large amount of data into small space. It is easy to use .NET barcode generation SDK. It can be used as generation DLL and integrated with C#.NET/VB.NET class library for barcode generation.

Create New .NET Project with C#/VB.NET Class library

  1. Open Visual Studio then create an Windows Forms project using C#/VB.NET programming;
  2. Install the .NET barcode generator in Windows Forms.
  3. Change barcode parameters in property setting panel or just input the code sample below to generate Code 128.

VB Codes:

Dim code128 As Aspper.Barcode.Bean.BarCode = New Aspper.Barcode.Bean.BarCode

        code128.Symbology = Aspper.Barcode.Symbology.Code128Auto

        code128.CodeToEncode = “128test”

        code128.X = 2

        code128.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()


        code128.ApplicationIndicator = 0

        code128.FNC1 = Aspper.Barcode.FNC1.None

        code128.TildeEnabled = False

C# Codes:

   BarCode code128 = new BarCode();

        code128.Symbology = Aspper.Barcode.Symbology.Code128Auto;

        code128.CodeToEncode = “128data”;

        code128.X = 2;


        code128.ApplicationIndicator = 0;

        code128.FNC1 = Aspper.Barcode.FNC1.None;

        code128.TildeEnabled = false;

Code 128 Code Set A, Code 128 Code Set B and Code 128 Code Set C are supported by this barcode generator.

More sample code listing, please refer to for tutorial.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: