Getting Started with Windows Forms Barcode

26 Apr 20211 minute to read

This section provides a quick overview for working with the barcode for WinForms.

Assembly deployment

The following assembly reference is required for deploying Barcode.

  • C#
  • Namespace: Syncfusion.Windows.Forms.Barcode
    Assembly: Syncfusion.SfBarcode.Windows

    Creating application with SfBarcode

    In this walk through, users will create WinForms application that contains SfBarcode control.

    Creating the project

    Create new Windows Forms Project in Visual Studio to display SfBarcode.

    Adding control via Designer

    SfBarcode control can be added to the application by dragging it from Toolbox and dropping it in Designer. The required assembly references will be added automatically.

    Adding control in Code

    In order to add control manually, do the below steps,

    1) Add the below required assembly references to the project,

    • Syncfusion.SfBarcode.Windows

    2) Create the SfBarcode control instance and add it to the Form

    using Syncfusion.Windows.Forms.Barcode;
    namespace WindowsFormsApplication1
        public partial class Form1 : Form
            public Form1()
                SfBarcode sfDataGrid1 = new SfBarcode();
                sfBarcode1.Text = "";
    Imports Syncfusion.Windows.Forms.Barcode
    Namespace WindowsFormsApplication1
    	Partial Public Class Form1
    		Inherits Form
    		Public Sub New()
    			Dim sfBarcode1 As New SfBarcode()
    			sfBarcode1.Text = ""
    		End Sub
    	End Class
    End Namespace