Create barcodes with C Sharp

Add Code 128 barcodes to your Visual Studio C# Windows Forms project.

Step 1. Click on Project > Add Existing Item... and browse for the file Code128Fonts.cs.  The default file location is:

 C:\Program Files\BarCodeWiz Code 128 Fonts\Examples\CSHARP\Code128Fonts.cs

Add Code 128 Fonts Function to your report

Open Code128Fonts.cs

Step 2. Add a TextBox and a Label to the form.  Change the Font properties of Label1 as below

Adjust the font properties of the text box to reflect Code 128 B fonts

Step 3. Double-click on TextBox1 and add the following code:

  Label1.Text = BarCodeWiz.Code128Fonts.Code128B(TextBox1.Text);

Convert text to Code 128 B in C Sharp

Step 4. The final result:

Code 128 B Font in a label with C Sharp

To see a more advanced example of barcode printing and label formatting with Code 128 Barcode Fonts in C#, open the project:

C:\Program Files\BarCodeWiz Code 128 Fonts\Examples\CSHARP\