VB.NET Code 39 Generator Library SDK
Integration & Developer Guide of Code 39 Barcode Generation in VB.NET

Generate barcode Code 39 images in Visual Basic .NET with complete sample VB.NET source code

  • Generate, create Code 39 in Visual Basic .NET applications
  • Easy to install & integrate barcode Code 39 with Code 39 check digit generation library SDK into VB.NET developments
  • Generate over 30 linear, 2d barcode images in VB.NET including QR Code VB.NET, Data Matrix VB.NET, Code 128 VB.NET, PDF-417 VB.NET
  • Generate Code 39 images in VB.NET class library
  • Create barcode Code 39 in VB.NET ASP.NET web application, webform, webpage
  • Print Code 39 barcode in VB.NET Windows Form project
  • Draw Code 39 in SQL Server Reporting Services (SSRS) & Crystal Reports for .NET projects
  • Easy to encode Code 39 images to jpeg, gif, png, tiff, bitmap files in VB.NET program

How to create, print Code 39 barcode in VB.NET Windows Forms, WPF application?

  1. Download VB.NET Code 39 Barcode Generator SDK
  2. Install Visual Basic library to generate Code 39 in VB.NET Windows Projects
  3. Step by Step Tutorial






VB.NET Code 39 Generator Introduction

Top
This part talks about the Code 39 barcode. It is a discrete and variable-length barcode type, known as the "Code 3/9", "Code 3 of 9", "USS Code 39", "USD-3", "Alpha39", "Type 39".
Using VB.NET Code 39 Generator to create Code 39 barcodes in VB.NET program is a simple and easy job. VB.NET Code 39 Generator control is easy to install with a single .NET Barcode generation control. It is easy to generate Code 39 barcodes in VB.NET class with detailed VB.NET Code 39 settings document and complete demo for Code 39 generation in VB.NET provided in this article.

Code 39 Generators

OnBarcode provides several Code 39 Generator components and software, including Code 39 .NET, Code 39 Generator, Code 39 Java, Code 39 C#,Code 39 ASP.NET.




Create Code-39 Barcodes in VB.NET

Top

Creating Code-39 barcode using VB.NET

Here we will show how to quickly create and print a Code 39 barcode to an image file using vb.net.

It initializes a linear barcode generator object, sets the barcode type to CODE39, defines the encoding barcode data, and exports the generated barcode as a PNG image file.

Dim barcode = New Linear()
barcode.Type = BarcodeType.CODE39
barcode.Data = "CODE-39"
barcode.drawBarcode("C://Output//vb-net-code39-how-to-demo.png")





Creating extended Code-39 barcode in VB.NET

Here we will generate a Code 39 Extended linear (1D) barcode in vb.net desktop application.

  • Sets the linear barcode symbology to Code 39 Extended (BarcodeType.CODE39EX), an enhanced version supporting full ASCII characters.

Dim barcode = New Linear()
barcode.Type = BarcodeType.CODE39EX
barcode.Data = "Code-39"
barcode.drawBarcode("C://Output//vb-net-code39-extension.png")





Code 39 with check character applied

Here we will generate a Code 39 linear (1D) barcode with an integrated checksum for enhanced data integrity.

  • Enable the automatic checksum generation feature through property AddCheckSum, which appends a validation character to the Code 39 barcode for error detection.

Dim barcode = New Linear()
barcode.Type = BarcodeType.CODE39
barcode.Data = "CODE-39"
barcode.AddCheckSum = True
barcode.drawBarcode("C://Output//vb-net-code39-check-character.png")



Hide Code 39 check character in printed text label

Here we will generate a Code 39 barcode with checksum character enabled, and hides the checksum character from the displayed human-readable text.

  • Use property AddCheckSum to enable automatic checksum generation to add a validation character for enhanced data integrity and error detection.
  • Use property ShowCheckSumChar to disable the display of the generated checksum character in the human-readable text below the barcode.

    The checksum remains embedded in the Code 39 barcode for scanner validation but remains invisible to end-users in the UI.

Dim barcode = New Linear()
barcode.Type = BarcodeType.CODE39
barcode.Data = "CODE-39"
barcode.AddCheckSum = True
barcode.ShowCheckSumChar = False
barcode.drawBarcode("C://Output//vb-net-code39-hide-check-character.png")





Create, customize Code 39 barcode with specified dimension size in VB.NET

Top
Now we will demonstrate how to generate a custom-sized Code 39 linear (1D) barcode for Windows Forms and WPF desktop applications.

The VB.NET code below initializes a linear barcode object, sets the Code 39 symbology, defines the barcode data, applies fixed width and height dimensions, and exports the resized barcode as a PNG image file.

Dim barcode = New Linear()
barcode.Type = BarcodeType.CODE39
barcode.Data = "CODE-39"
barcode.BarcodeWidth = 300
barcode.BarcodeHeight = 200
barcode.drawBarcode("C://Output//vb-net-code39-size.png")





Create Code 39 with barcode options customized in VB.NET WinForms, WPF apps

Top
Using OnBarcode VB.NET Barcode Generator library, you can apply the following properties to customize the Code 39 bar, space width, start/stop chars display/hide in Visual Basic .NET application.
  • ShowStartStopInText: enable to display or hide start/stop chars (*) in the Code 39 barcode text
  • N: Wide bar width vs narrow bar width ratio, 2.0 - 3.0 inclusive, default is 2.
  • I: The space between 2 characters in code 39. This is a multiple of X (narrow bar width).

Here we will show how to customize the Code 39 barcode image below through properties N and I.


Show / hide Code 39 start/stop chars

You can choose to hide Code 39 start / stop characters (*) in the barcode text (the start / stop characters will still be encoded into Code 39 barcode symbology) using vb.net.
  • Set property ShowStartStopInText to false to hide the start/stop chars displayed in the Code 39 barcode human readable text
Dim barcode = New Linear()
barcode.Type = BarcodeType.CODE39
barcode.Data = "CODE-39"
barcode.ShowStartStopInText = False
barcode.drawBarcode("C://Output//vb-net-code39-hide-start-stop-chars.png")





Code 39 Wide bar vs Narrow bar size ratio (N)

Using vb.net barcode generator component api, you can apply the Code 39 wide bar vs narrow bar ratio through property N in vb.net console, Windows Forms, WPF desktop applications.

The property N valid value is from 2 to 3 (both inclusive). The default is 2.

barcode.N = 3





Code 39 Intercharacter space (I)

Using vb.net barcode generator sdk library, you can apply the Code 39 inter characters space size through property I in VB.NET class.

The property I is the space between 2 character bar modules, and it is a multiple of X (narrow bar module width). The default value is 1.0f.

barcode.I = 2













Common Asked Questions

What is Code 39 barcode used for?

Code 39, also known as Code 3 of 9, is the first barcode symbology to encode both numbers and letters (Upper case letters only). It is most commonly used in the inventory, government, military and electronics industries.

Using VB.NET barcode generator library, you can need create and initiate a new com.onbarcode.barcode.Code39 object to create Code 39 or Code 39 extension barcodes. Standard or regular Code 39 barcode encodes upper-case letters only. To encode lower-case letters, you need choose Code 39 extend barcode.

Can Code 39 barcode encode lowercase letters in VB.NET class?

Code 39 barcode standard version does not support lowercase letters encoding. However the Code 39 extended version does. OnBarcode VB.NET Barcode Generator library does support both Code 39 standard and extend versions. In VB.NET class Code39, by default it will create standard Code 39 barcode images. To create Code 39 extended barcodes using VB.NET, set the methodCode39.setExtension(true) in Visual Basic .NET class library, console, WinForms, WPF windows applications.

What is the minimum size for Code 39 barcode?

Code 39 barcodes need meet the following barcode dimension size requirements.
  • Code39.setX() (X): the mimumum bar width (X module) is defined by the application specification. In VB.NET class, you can create and customize the Code 39 bar/space module width through method Code39.setX()
  • Code39.setBarcodeHeight(): the minimum height is 5.0mm or 15% of symbol width (excluding quiet zones), whichever is greater. Using VB.NET barcode library, you can generate and customize the Code 39 barcode image height through method Code39.setBarcodeHeight() in VB.NET class

What is the ratio of narrow to wide bars in Code 39 barcode?

The valid ratio of Code 39 narrow to wide bars is from 1:2 to 1:3 inclusive. You can apply the Code 39 bars ratio configure through method Code39.setN() using VB.NET barcode generation library.

What is the difference between barcode 39 and barcode 93?

Bath Code 39 and Code 93 are linear (1d) barcode formats. Code 93 is an updated version of Code 39. Code 93 is a higher-density barcode type compared to Code 39. Java barcode library supports both Code 39 and Code 93 barcodes generation and printing in Visual Basic .NET class library, console, WinForms, WPF windows applications.

In VB.NET class Code39, by default it will create standard Code 39 barcode images. To create Code 39 extended barcodes using VB.NET, set the methodCode39.setExtension(true) in Visual Basic .NET class library, console, WinForms, WPF windows applications.

Creating a new Code93 to encode and print Code 93 barcode images in VB.NET windows or console project.

What is the difference between Code 39 and Code 128 barcodes?

Bath Code 39 and Code 128 are linear (1d) barcode symbologies. Code 128 requires a compulsory checksum digit. If the Code 128 barcode is damaged, it may still be scannable. Code 39 checksum is optional. If the Code 39 barcode without checksum is damaged, it won't be scannable. In VB.NET class, you can generate Code 39 barcode with or without check sum applied using VB.NET Barcode Generator library.

In VB.NET source code, set method Code39.setAddCheckSum() with true value to append a checksum character to the end of Code 39 barcode.




































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.