Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode SDK > VB.NET Barcode Creating Guide > Code 2 of 5 Barcode Generator for VB.NET Library
Download Barcode for .NET Suite Trial

VB.NET Code 2 of 5 Barcode Generator SDK

How to Generate & Print Code 2 of 5 Barcode Using VB.NET Class Codes
  • Indispensable Code 2 of 5 barcode generator sdk for .NET programmers
  • Compile VB.NET Code 2 of 5 bar coding functions into easy-to-use dll assemblies
  • Able to generate Code 2 of 5 barcode in VB.NET ASP.NET web & WinForms applications
  • Generate Code 2 of 5 barcode image in Crystal Reports & RDLC Reports
  • Create & draw Code 2 of 5 barcode to gif, png, jpeg & bmp image files
  • Compatible with other 1d & 2d bar coding standards for VB.NET applications
Basic Information about VB.NET Code 2 of 5 Linear Barcode
Code 2 of 5, a very simple linear barcode symbology, is used in air ticket making field. It can only encode numeric characters. As its information carriers are only limited to bars, the data-density of Code 2 of 5 is quite low.
Generating Code 2 of 5 Barcode Using VB.NET Class Codes
If you are looking for free VB.NET codes to generate Code 2 of 5 barcode in .NET applications, the following information will be great useful for you.
  1. Please install one of our VB.NET barcode generator dlls to your project reference and the toolbox.
  2. Use sample VB.NET barcode below to generate Code 2 of 5 barcode in VB.NET project.
     Dim code25 As New BarcodeLib.Barcode.Linear()
code25.Type = BarcodeType.CODE2OF5
code25.Data = "123456"

code25.BarColor = System.Drawing.Color.Black
code25.BarWidth = 1
code25.LeftMargin = 7
code25.RightMargin = 7

'You could also adjust other settings of Code 2 of 5, like image format, rotate, image size etc.

'Save barcode image into your system
code25.drawBarcode("c:/code25.png")

'Encode Code 2 of 5 barcode & output to byte array
byte[] barcodeInBytes = code25.drawBarcodeAsBytes()

'Draw Code 2 of 5 barcode to Graphics object
Graphics graphics = ...
code25.drawBarcode(graphics)

'Generate Code 2 of 5 barcode and output to HttpResponse object
HttpResponse response = ...
code25.drawBarcode(response)

'Output created Code 2 of 5 barcode to Stream object
Stream stream = ...
code25.drawBarcode(stream)
Creating Code 2 of 5 Barcode in VB.NET ASP.NET Web Applications
If you are going to generate Code 2 of 5 barcode in ASP.NET project, our VB.NET barcode generator can help you achieve that in two ways.
  1. First, you have to install "Barcodelib.Barcode.ASP.NET.dll" to your project reference and toolbox.
  2. Then you need copy "linear.aspx" & "linear.aspx.cs" from the folder "barcode" in the trial package to your web folder.
  3. Drag "LinearASPNET" from the Toolbox and drop it on the split part of your aspx page.
  4. Select generated barcode image and adjust its barcode type to Code 2 of 5. Besides, you can also generate a standard Code 2 of 5 barcode using sample VB.NET codes mentioned above.
Generating Code 2 of 5 Barcodes in VB.NET WinForms Project
The operating process is similar to that of generating Code 2 of 5 barcode in ASP.NET web applications.
  1. As usual, you need to add "BarcodeLib.Barcode.WinForms.dll" to your project reference and toolbox.
  2. Then, drag LinearWinForm to your windows form and adjust its type to Code 2 of 5 in Properties Window or you can create a Code 2 of 5 barcode with sample VB.NET codes mentioned above.
Code 2 of 5 VB.NET Barcoding SDK Supported Barcode Types
VB.NET Linear Barcodes:
VB.NET Matrix Barcodes:
Common industry linear barcode generator used in VB.NET applications: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN 8, EAN 13, EAN 128, Interleaved 2 of 5, ITF14 (UPC Shipping Container Symbol), MSI Plessey, OneCode, Planet, Postnet, RM4SCC (British Royal Mail 4-State Customer Barcode), UPC-A, UPC-E.
Common industry 2d barcode generator used in VB.NET applications: Data Matrix, PDF417, QR Code.
Quick look at other Code 2 of 5 bar coding generators used in .NET & Java applications:





Provides High Quality Barcode .NET, Barcode ASP.NET, Barcode C#.NET, Barcode VB.NET, Barcode .NET Windows Forms, Code 2 of 5 .NET, Code 2 of 5 C#, Code 2 of 5 VB.NET, Code 2 of 5 ASP.NET, Code 2 of 5 WinForms, Code 2 of 5 .NET Reporting Services, Crystal Reports, and RDLC Reports Barcode Libraries.