Key in your email here
Font Products
 Barcode Fonts
  • Code 39 Barcode
  • Code 128 Barcode
  • UCCEAN Barcode
  • ITF14 Barcode
  • I2of5 Barcode
  • UPC/EAN Barcode
  • GS1 Databar Barcode
 Download ConnectCode
 MICR Fonts
  • MICR E13B
  • MICR CMC7
 Download MICR

Using the Fonts
  • With the Font Encoder
  • With Excel
  • With Access
  • With Word
  • With Crystal Reports
  • Application Integration
     • With C#
     • With Visual Basic
     • With WPF (C#)
     • With WPF (VB)
     • With Visual C++

SDK Products
 .Net Barcode SDK
 Download SDK

Software Products
 Barcode Software Imager
 Download Imager


Barcode FAQ
 Barcode
  • Barcode Symbology
  • Barcode FAQ
  • Barcode Images
  • Barcode Font
 RFID
  • What is RFID?
 Thermal Printers
 Barcode Scanners
 OCR & OCR Fonts
 MICR & MICR Fonts

Barcode Resources
 Web Resources
 The Barcode CD Project
 Mobile Barcode Project



Using the SDK as a Windows Form Control Barcode

Inside Visual Studio 2005/2008,

  • Launch the ToolBox on Visual Studio by going to menu View->Toolbox
  • Right-Click on the Toolbox and click on Choose Items...
  • The Choose Toolbox Items dialog will be launched. click the Browse button and select ConnectCodeBarcodeLibrary.dll in the installation directory. Click OK to close the Choose Toolbox Items dialog.



  • You should be able to see a new item BarcodeControl in the Toolbox. drag it and drop it to the Windows Form in the designer.



  • Your application is now barcode enabled.
  • For more details, please refer to the Windows Forms Sample that is shipped with the Barcode Control package.

Windows Presentation Foundation(WPF) Barcode

Inside Visual Studio 2005/2008,

  • Add a reference to ConnectCodeBarcodeLibrary.dll. This can be done by Right clicking on the project and select Add Reference.



  • Add a reference to WindowsFormsIntegration and System.Windows.Forms. These assemblies can be found under the .Net tab.



  • Create an instance of the WindowsFormsHost and set its child to the BarcodeControl


    Net.ConnectCode.BarcodeControl bc = new Net.ConnectCode.BarcodeControl();
    System.Windows.Forms.Integration.WindowsFormsHost formshost = new System.Windows.Forms.Integration.WindowsFormsHost();
    formshost.Child = bc;



  • Add the WindowsFormsHost to your WPF window. For example, if the WPF window contains a grid named windowgrid, you may use the following call


    this.windowsgrid.Children.Add(formshost);

  • The following is a sample screen of the WPF application.



  • For more details, please refer to the WPF Sample that is shipped with the Barcode Control package.
Back to .Net Barcode SDK

Back to Barcode Fonts and Software

Copyright (C) 2004-2009, BarcodeResource.com. All Rights Reserved.