borderAndreaVB free resources for Visual Basic developersborder

AndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincani

AndreaVB Home | News Home | Forum Home | Downloads | Register | Search | PM | Profile

Previous Topic (PDF Encryption, PDF Viewer & PDF Converter support in Java apps)Next Topic (Convert DOC, DOCX, RTF, ODT & HTML to PDF in Java Applications) New Topic Post Reply
AndreaVB OnLine : News : Barcode Data Binding in Windows Forms with Binding Navigator
Poster Resource
Neodynamic
Level: Master

Registered: 08-12-2005
Posts: 131
icon Barcode Data Binding in Windows Forms with Binding Navigator

Technologies used
- Neodynamic Barcode Professional 2.5 for Windows Forms
- Microsoft .NET Framework 2.0 or greater
- Microsoft Visual Studio 2005
- Microsoft Visual Studio 2005 Express Editions (VB, C#, J#, and C++)

In the following step by step guide we're going to create a simple Windows Forms application that accomplishes data binding tasks. In this Windows Forms we'll use Barcode Professional to bind a data field to it and using Binding Navigator controls as well. We'll use Microsoft's AdventureWorks database sample for SQL Server 2005.

Follow these steps:
- Ensure you have installed Barcode Professional for Windows Forms
- Launch Visual Studio and create a new Windows Forms application
- Go to Data > Add New Data Source and follow the wizard?s instructions. Select the AdventureWorks database. When you are asked for a Database object, select vEmployee (HumanResources) view and the fields shown in the following figure.

  

- Open the default Form at design-time and ensure that Barcode Professional is on the Visual Studio Toolbox as is shown in the following figure:

  

- Now, change to the Data Sources Explorer, select vEmployee and set its view to Details as is shown in the following figure.

  

- We want to represent the EmployeeID field as a barcode image onto the form. In order to accomplish it, we should "bind" the EmployeeID field with Barcode Professional. Click on the button on the right of EmployeeID field and select Customize from the popup menu as is shown in the following figure.

  

- In the Options dialog box, select BarcodeProfessional

  

- After that, Barcode Professional is ready to be bound with EmployeeID field. Click on the button on the right of EmployeeID field and select BarcodeProfessional.

  

- Now it's time the designer automatically creates the form layout. Select the vEmployee item from the Data Sources Explorer and drag & drop it onto the form. Then, select the barcode control on the form and set an empty string to its Text property. The form should look like the following.

  

- That's it. Run the app. You'll get something like the following:

  

Links:
This Demo
More Demos
Download Barcode Professional for Windows Forms
More Information about Neodynamic Barcode Professional for Windows Forms


Neodynamic
.NET Components & Controls
http://www.neodynamic.com
http://www.barcode-for-net.com

22-12-2009 at 03:18 PM
View Profile Send Email to User Show All Posts Visit Homepage | Add Comment
AndreaVB OnLine : News : Barcode Data Binding in Windows Forms with Binding Navigator
Previous Topic (PDF Encryption, PDF Viewer & PDF Converter support in Java apps)Next Topic (Convert DOC, DOCX, RTF, ODT & HTML to PDF in Java Applications)New Topic Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder