Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2007, 05:18 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Barcode Scanner Interfacing

I am new to development and have to design an application that would scan the barcode via a scanner and insert the time of scanning into the database.

I would want to know what should I do to make sure that the application does that without having to press the submit button everytime. The focus has to return back to the text box after the insertion is done.

Also, please guide me on how the scanner works in this frame. I am using VB.NET

Waiting for an early response.

Pramod Rao
 
Old April 11th, 2007, 08:45 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Do you have a manual or other documentation for the scanner?

I imagine this would be achieved by hooking to an event that would be raised by the scanner's API. When that event occurs, you can execute whatever code you need (insert value into database) then focus back to the textbox.

You'll have to refer to the hardware documentation for details.

-Peter
 
Old April 12th, 2007, 02:25 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Peter,

I'll check on your suggestion and get back.

Pramod Rao
 
Old October 10th, 2007, 11:18 AM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To use the scanner to scan barcode. put a single text box on the page and start scanning, as you scan the barcode it will automatically POST your page. You don't need to add a submit button on the page.
This will work only if you have only one (single) text box in your page.

enjoy!






Similar Threads
Thread Thread Starter Forum Replies Last Post
how add barcode scanner in asp.net project saurabh ASP.NET 3.5 Professionals 2 November 29th, 2012 10:35 PM
Scanner,Barcode reader and Printer MZA Visual Studio 2005 2 September 4th, 2012 12:02 AM
device interfacing kanoorani Beginning VB 6 4 September 8th, 2006 01:13 AM
C# and Java interfacing anirbanbasuz C# 0 April 14th, 2006 01:06 AM
How to Extract Data from Barcode Scanner? Mahavishnu Classic ASP Basics 1 November 16th, 2004 09:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.