Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Announcements
Vendor Announcements
Barcode Data Binding in Windows Forms with Binding Navigator
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Neodynamic, post: 112471, member: 5006"] [b]Technologies used[/b] - 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 [b]Barcode Professional[/b] to bind a data field to it and using Binding Navigator controls as well. We'll use [b]Microsoft's AdventureWorks database sample for SQL Server 2005[/b]. [b]Follow these steps:[/b] - Ensure you have installed [url=http://www.neodynamic.com/Products/BCWinC/BarcodeWinControl.aspx?tabid=23&prodid=3]Barcode Professional for Windows Forms[/url] - Launch [b]Visual Studio[/b] and create a new [b]Windows Forms application[/b] - Go to [b]Data > Add New Data Source[/b] and follow the wizard?s instructions. Select the [b]AdventureWorks[/b] database. When you are asked for a Database object, select [b]vEmployee[/b] (HumanResources) view and the fields shown in the following figure. [img]http://www.neodynamic.com/Support/FAQs/34/figure01Small.jpg[/img] - Open the default Form at design-time and [b]ensure that Barcode Professional is on the Visual Studio Toolbox[/b] as is shown in the following figure: [img]http://www.neodynamic.com/Support/FAQs/34/figure02Small.jpg[/img] - Now, change to the [b]Data Sources Explorer[/b], select [b]vEmployee[/b] and set its view to [b]Details[/b] as is shown in the following figure. [img]http://www.neodynamic.com/Support/FAQs/34/figure03Small.jpg[/img] - We want to represent the [b]EmployeeID[/b] field as a barcode image onto the form. In order to accomplish it, we should "bind" the [b]EmployeeID[/b] field with Barcode Professional. Click on the button on the right of [b]EmployeeID[/b] field and select [b]Customize[/b] from the popup menu as is shown in the following figure. [img]http://www.neodynamic.com/Support/FAQs/34/figure04Small.jpg[/img] - In the [b]Options[/b] dialog box, select [b]BarcodeProfessional[/b] [img]http://www.neodynamic.com/Support/FAQs/34/figure05Small.jpg[/img] - After that, [b]Barcode Professional[/b] is ready to be bound with [b]EmployeeID[/b] field. Click on the button on the right of [b]EmployeeID[/b] field and select [b]BarcodeProfessional[/b]. [img]http://www.neodynamic.com/Support/FAQs/34/figure06.jpg[/img] - Now it's time the designer automatically creates the form layout. Select the [b]vEmployee[/b] item from the [b]Data Sources Explorer[/b] and drag & drop it onto the form. Then, select the barcode control on the form and set an empty string to its [b]Text[/b] property. The form should look like the following. [img]http://www.neodynamic.com/Support/FAQs/34/figure07Small.jpg[/img] - That's it. Run the app. You'll get something like the following: [img]http://www.neodynamic.com/Support/FAQs/34/figure08.jpg[/img] [b]Links:[/b] [url=http://www.neodynamic.com/ND/FaqsTipsTricks.aspx?tabid=66&prodid=3&sid=34]This Demo[/url] [url=http://www.neodynamic.com/Products/Demos/Demos.aspx?tabid=74&prodid=3]More Demos[/url] [url=http://www.neodynamic.com/ND/Downloads.aspx?tabid=44&prodid=3]Download Barcode Professional for Windows Forms[/url] [url=http://www.neodynamic.com/Products/BCWinC/BarcodeWinControl.aspx?tabid=23&prodid=3]More Information about Neodynamic Barcode Professional for Windows Forms[/url] Neodynamic .NET Components & Controls [url=http://www.neodynamic.com]Neodynamic[/url] [url=http://www.barcode-for-net.com]Neodynamic Barcode Professional for .NET Windows Forms[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Announcements
Vendor Announcements
Barcode Data Binding in Windows Forms with Binding Navigator
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom