QR Code Image Sample - pqScan.com
.NET Data Matrix Barcode Creator Windows Forms Control Encoding Data Matrix Image in .NET WinForms Online Demo Download Trial Purchase Now

How to Generate Data Matrix in .NET WinForms

back to home  >  .NET Barcode Generator SDK  >   Generate Barcodes in Winforms  >  Generate Data Matrix in Winforms

.NET WinForms Data Matrix Creator is one of the barcode generation functions in pqScan Barcode Creator For WinForms .NET. We provide two ways to make Data Matrix in .NET WinForms applications. One is drag and drop Barcode Windows From Control to print Data Matrix, the other is print and encode Matrix in Form class.

Generating Data Matrix through .NET WinForms Barcode Creator Control

Printing a Data Matrix barcode image on the Windows Forms is very simple and easy with the help of Barcode WinForms Control:

  1. Download and unzip the .NET Barcode Creator WinForms Control package to development computer.
  2. In your Visual Studio, right click the toolbox and select Choose Items...
  3. In the pup-up "Choose Toolbox Items" dialog, click Browse... to choose "PQScan.BarcodeCreator.dll" file.
  4. Check the Barcode WinForms control "BarcodeWinControl".
  5. Drag and drop the appeared "BarcodeWinControl" to your Windows Forms.
  6. Run the Windows project, and you will find a Data Matrix image drawn on the Form.
  7. Specify the Data Matrix image from right-side "properties" setting pane or in run-time code.

Creating Data Matrix in .NET WinForms class using Barcode Creator API

Generating Data Matrix barcode in .NET WinForms Application using the API of Barcode Creator is really not difficulty to you. Look at the flowing steps and example code, it will not waste your time.

  1. Download Data Matrix barcode generator SDK.
  2. Add "PQScan.BarcodeCreator.dll" to your .NET WinForms project reference.
  3. Add the C# code below to your .NET Windows Forms class:
using System;
using System.Windows.Forms;
using PQScan.BarcodeCreator;

namespace DataMatrixGenerateInWinforms
    publicpartialclassForm1 : Form
        public Form1()

            Barcode datamatrix = new Barcode();

            datamatrix.Data = "pqScan123456789";
            datamatrix.BarType = BarCodeType.DataMatrix;
            datamatrix.Width = 300;
            datamatrix.Height = 300;
            datamatrix.DataMatrixShape = SymbolShapeMode.Square;



generate datamatrix in .net winforms

.NET Barcode Creator QR Code 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 Code 39 Creator in Winforms