QR Code Image Sample - pqScan.com
.NET Code39 Barcode Creator Windows Forms Control Encoding Code 39 Image in .NET WinForms Online Demo Download Trial Purchase Now
.NET
Winforms
ASP.NET C#-VB

How to Generate Code39 in .NET WinForms

back to home  >  .NET Barcode Generator SDK  >   Generate Barcodes in Winforms  >  Generate Code 39 in Winforms

.NET WinformsCode39 Creator is one of the barcode generation functions in pqScan Barcode Creator For Winforms .NET. In this tutorial, there are two ways to make barcode in .NET Windows Forms: using .NET Barcode WinForms Control or coding in Form class with .NET Barcode Creator API. Besides, you can generate a Code39 barcode in ASP.NET web applications.

Generating Code39 by dragging and dropping.NET WinfromsBarcode Creator Control

To drawCode39 on .NET Windows Forms directly, pqScan Barcode Creator Winforms Control offers a solution for this.

  1. DownloadBarcode Creator WinForms Control, copy the "PQScan.BarcodeCreator.dll" to your .NET program folder.
  2. Add the DLL to Visual Studio Toolbox:
    • In your Visual Studio, show the "toolbox" pane.
    • Right click the toolbox to select Choose Items...
    • In the pop-up "Choose Toolbox Items" dialog, click Browse... to findpqScan Barcode Creator DLL
    • Make sure the "BarcodeWinControl" item is checked.
  3. Drag and drop "BarcodeWinControl" to your Windows From.
  4. Run theWinformsproject, and aCode39 barcode will be encoded on the Form.
  5. You can customize Code39 image from right-side "properties" setting pane.

Making Code39 in .NET Windows Form class

If you want to develop a Code39 barcode creation system your own, or to embedded Code39 barcode into a ready system, encoding with Barcode Creator Library API is what you are looking for.

  1. DownloadCode39 barcode generator SDK.
  2. Reference "PQScan.BarcodeCreator.dll" to your .NET Windows Forms programming.
  3. Insetthe givenC# code to your .NET Winfroms class:
using System;
using System.Windows.Forms;
using PQScan.BarcodeCreator;

namespace Code39GenerateInWinforms
{
    public partial classForm1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            Barcode code39 = new Barcode();

            code39.Data = "123456789";
            code39.BarType = BarCodeType.Code39;
            code39.Width = 200;
            code39.Height = 80;
            code39.ShowText = true;

            code39.CreateBarcode("code39-winforms.bmp");
        }

    }
}

generate code39 in .net winforms

.NET Barcode Creator QR Code Creator in Winforms Data Matrix Creator in Winforms PDF 417 Creator in Winforms Aztec Code Creator in Winforms EAN 13 Creator in Winforms EAN 8 Creator in Winforms UPC A Creator in Winforms Code 128 Creator in Winforms