Barcode Fonts, Components, ActiveX and .NET Windows Forms Controls, Java Servlets, 
DLLs and Barcode Scanners., Inc., Computers Hardware, Software & Services, Tampa, FL   This site chose the Norton Secured Seal to promote trust online with consumers.    View your cart in the IDAutomation Store   

Home > Free Barcode Products > Free .NET Forms Control DLL > User Manual & Tutorial

Free Windows Forms Control User Manual

The Freeware .NET Barcode Forms Control DLL by IDAutomation may be used by individuals and organizations that have a gross annual revenue of less than $500,000 USD or are classified as nonprofit for tax purposes, excluding government and military organizations. This product may also be freely used by educational organizations, such as schools and universities. This freeware license is granted in the Free License section of our License Agreement. Any other use requires a purchase of our Windows .NET Forms Control to remain properly licensed.

The free .NET Barcode Forms Control supports Code 39 and Extended Code 39. The licensed version includes all the other popular barcode types including UPC, EAN, Code 128, Interleaved 2 of 5 and Postnet. All other functionality of the control is the same.

Forms Control Tutorial

Using the controls is a simple 3 step process:

Step 1 - download and unzip the control package

Download and unzip the package. We suggest placing the DLL in a local directory such as C:\IDAutomation that is easy to remember and locate.

Step 2 - register the control in the application

After the control is installed, the application must know where it is located. We have examples below that should help with different methods of using and printing the images.

Registering the Control in Microsoft® VB.NET and Microsoft® C# .NET:
  1. Open the solution or project and display the form to which the barcode will be added. Choose View - Toolbox to display the Toolbox. Right-click on the Toolbox and choose Customize Toolbox. Choose the .NET Framework Components folder. Choose Browse and select the IDAutomation Linear Barcode Control.
    Select the IDAutomation Linear Barcode Control
  2. After the control appears in the Toolbox, add it to the form.
    Add IDAutomation Linear Barcode Control to form
  3. Or choose Project - Add Reference to bypass adding it to the form.
Registering the Control in a Borland Delphi for .NET or C# Builder:
  1. Open the project. Choose Component - Installed .NET Components from the menu. The Installed .NET Components dialog will appear.
  2. Ensure that the Installed .NET Components tab is selected and then click on the Select an Assembly button.
  3. Navigate to the location where the Forms Control was installed.
  4. Click Open and select the control.
  5. Click OK on the Installed .NET Components dialog.
  6. The barcode control will be in the General section of the Tools Palette.
Sizing the control:

The control cannot be sized manually because it must meet specific requirements, such as a precise X dimension (narrow bar width) and barcode height specified in the properties of the control. To increase the width, increase the XDimensionCM or XDimensionMILS property. To increase the height, increase the BarHeightCM property.

Printing from the control:
Dynamically placing the control on a form:
Dim NewBarcode As IDAutomation.Windows.Forms.LinearBarCode.Barcode = New Barcode()
NewBarcode.Size = New System.Drawing.Size(148, 64)
NewBarcode.Location = New System.Drawing.Point(176, 7)
NewBarcode.Name = "NewBarcode"
Me.Controls.AddRange(New System.Windows.Forms.Control() {NewBarcode})
NewBarcode.DataToEncode = "999928829"
PictureBox1.Image = NewBarcode.Picture
//Create the new barcode object
IDAutomation.Windows.Forms.LinearBarCode.Barcode NewBarcode 
= new IDAutomation.Windows.Forms.LinearBarCode.Barcode();
NewBarcode.Location = new System.Drawing.Point(1, 1); //Set the location to the top left corner 
NewBarcode.Name = "NewBarcode"; //Give the barcode a name
this.Controls.AddRange(new System.Windows.Forms.Control[] { 
NewBarcode }); //add the barcode to the controls collection
NewBarcode.DataToEncode = "123ABC78"; //Update the Data 
NewBarcode.RefreshImage(); //Since there is not a paint event, update the images
Using the control as a DLL or in a Web Service Application
(creates a barcode image without installing it on a form):
Dim NewBarcode As IDAutomation.Windows.Forms.LinearBarCode.Barcode = New Barcode()
NewBarcode.DataToEncode = "999928829"
PictureBox1.Image = NewBarcode.Picture
Creating JPEG, TIFF, BMP, PNG or other graphic files:
Barcode1.Resolution = Barcode.Resolutions.Custom
Barcode1.ResolutionCustomDPI = 300
Barcode1.XDimensionCM = 0.03
Barcode1.SaveImageAs("SavedBarcode300DPI.Jpeg", System.Drawing.Imaging.ImageFormat.Jpeg)
Barcode1.Resolution = Barcode.Resolutions.Printer
//The following is an example of changing the resolution of the barcode object and saving the image as a JPEG.
barcode1.Resolution = IDAutomation.Windows.Forms.LinearBarCode.Barcode.Resolutions.Custom; //Define the own resolution size
barcode1.ResolutionCustomDPI = "300"; //Set the resolution
barcode1.XDimensionCM = "0.03"; //Set the X Dimension

//Here's where the file is saved. If a full path is not specified, the file is created in the same directory as the IDAutomation.LinearBarcode.DLL.
barcode1.SaveImageAs("SavedBarcode300DPI.Jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
barcode1.SaveImageAs(@"C:\SavedBarcode300DPI.Tiff", System.Drawing.Imaging.ImageFormat.Tiff);
barcode1.Resolution = IDAutomation.Windows.Forms.LinearBarCode.Barcode.Resolutions.Printer; //Reset the resolution to the default printer's DPI
Copying barcodes to the clipboard:
Dim datobj As New System.Windows.Forms.DataObject()
Dim MyBitmap As New System.Drawing.Bitmap(Maxicode1.BMPPicture)
datobj.SetData(System.Windows.Forms.DataFormats.Bitmap, MyBitmap)
MyBitmap = Nothing
datobj = Nothing
Step 3 - adjust the properties of the control

After the control is inserted in the application as described in step 2, the properties can be adjusted in the control. To do this, the properties can be changed with program code or by right-clicking on the control and choosing Properties if it is loaded on a form.

NOTE: Many of the barcode sizing parameters are calculated in CM (centimeters). Please refer to the following rules for conversions:

Linear Properties:

This section explains the main configuration parameters and methods of the linear control. For advanced properties, please refer to the API Documentation.

Other Products:

IDAutomation also has many other products to offer for barcoding purposes including:

Technical Support

Per Incident Support for Free Software ProductsFree product support may be obtained by reviewing articles that are documented at our forms control support website and by searching our resolved public forum threads. Per-Incident Support is available for purchase if more in-depth support is needed.

However, Priority phone, email and forum support may be obtained by ordering a license to the Standard Windows .NET Forms Control.

For additional products, please view the product index to obtain a list of all products we offer.

Back to Top

 ©Copyright 2017, All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us

Training Videos on YouTube  Join us on Google Plus  Join us on LinkedIn  Follow us on Twitter  Like us on Facebook
Over 70% of Fortune 100 companies use IDAutomation's products to automate their businesses.