I have an application that will use barcode scanners to enter an ID to
search a database. The main form uses a tab page. I would like people to go
to the tab for checking in and just read the barcode without having to hit
enter. I also want to keep the number hidden, so I don't want it entered
into a visible textbox. TabPages don't have a keypress event, so I'm not
sure how to handle this.
Thanks... 8 1678
Hi Shawn
The barcode readers I have worked with have always passed the barcode data
to the program as if it had been typed at the keyboard, with a configurable
'end-of-entry' character; usually CR.
If this is the same in your case, you will need to have some control on your
tab page capable of receiving keyboard entry, and it must have the focus.
The most common control for this purpose is the TextBox control.
If you want to keep the number hidden, you could use a TextBox control with
the password character set. Also, have a default button that will accept the
CR.
HTH
Charles
"Shawn" <sh**********@ccci.org> wrote in message
news:eP**************@TK2MSFTNGP15.phx.gbl... I have an application that will use barcode scanners to enter an ID to search a database. The main form uses a tab page. I would like people to go to the tab for checking in and just read the barcode without having to hit enter. I also want to keep the number hidden, so I don't want it entered into a visible textbox. TabPages don't have a keypress event, so I'm not sure how to handle this.
Thanks...
Thanks Charles,
Well, that was a way I knew I could do it, but I wanted to avoid having any
control showing on the form. Think of like a grocery store scanner. You wave
the UPC in front of the scanner and the item is retrieved from the database
without showing the input.
"Charles Law" <bl***@nowhere.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl... Hi Shawn
The barcode readers I have worked with have always passed the barcode data to the program as if it had been typed at the keyboard, with a configurable 'end-of-entry' character; usually CR.
If this is the same in your case, you will need to have some control on your tab page capable of receiving keyboard entry, and it must have the focus. The most common control for this purpose is the TextBox control.
If you want to keep the number hidden, you could use a TextBox control with the password character set. Also, have a default button that will accept the CR.
HTH
Charles
"Shawn" <sh**********@ccci.org> wrote in message news:eP**************@TK2MSFTNGP15.phx.gbl...I have an application that will use barcode scanners to enter an ID to search a database. The main form uses a tab page. I would like people to go to the tab for checking in and just read the barcode without having to hit enter. I also want to keep the number hidden, so I don't want it entered into a visible textbox. TabPages don't have a keypress event, so I'm not sure how to handle this.
Thanks...
(warning: horrible trick follows)
If you set a TextBox to MultiLine = True, you can then change its
Height to 0. In this state it is completely invisible, though it still
receives input focus and keyboard input as normal.
Shawn wrote: Thanks Charles,
Well, that was a way I knew I could do it, but I wanted to avoid having any control showing on the form. Think of like a grocery store scanner. You wave the UPC in front of the scanner and the item is retrieved from the database without showing the input.
"Charles Law" <bl***@nowhere.com> wrote in message news:e8**************@TK2MSFTNGP12.phx.gbl... Hi Shawn
The barcode readers I have worked with have always passed the barcode data to the program as if it had been typed at the keyboard, with a configurable 'end-of-entry' character; usually CR.
If this is the same in your case, you will need to have some control on your tab page capable of receiving keyboard entry, and it must have the focus. The most common control for this purpose is the TextBox control.
If you want to keep the number hidden, you could use a TextBox control with the password character set. Also, have a default button that will accept the CR.
HTH
Charles
"Shawn" <sh**********@ccci.org> wrote in message news:eP**************@TK2MSFTNGP15.phx.gbl...I have an application that will use barcode scanners to enter an ID to search a database. The main form uses a tab page. I would like people to go to the tab for checking in and just read the barcode without having to hit enter. I also want to keep the number hidden, so I don't want it entered into a visible textbox. TabPages don't have a keypress event, so I'm not sure how to handle this.
Thanks...
Ok, now that sounds interesting. Let me try that...
"Larry Lard" <la*******@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com... (warning: horrible trick follows)
If you set a TextBox to MultiLine = True, you can then change its Height to 0. In this state it is completely invisible, though it still receives input focus and keyboard input as normal.
Shawn wrote: Thanks Charles,
Well, that was a way I knew I could do it, but I wanted to avoid having any control showing on the form. Think of like a grocery store scanner. You wave the UPC in front of the scanner and the item is retrieved from the database without showing the input.
"Charles Law" <bl***@nowhere.com> wrote in message news:e8**************@TK2MSFTNGP12.phx.gbl... > Hi Shawn > > The barcode readers I have worked with have always passed the barcode > data > to the program as if it had been typed at the keyboard, with a > configurable 'end-of-entry' character; usually CR. > > If this is the same in your case, you will need to have some control on > your tab page capable of receiving keyboard entry, and it must have the > focus. The most common control for this purpose is the TextBox control. > > If you want to keep the number hidden, you could use a TextBox control > with the password character set. Also, have a default button that will > accept the CR. > > HTH > > Charles > > > "Shawn" <sh**********@ccci.org> wrote in message > news:eP**************@TK2MSFTNGP15.phx.gbl... >>I have an application that will use barcode scanners to enter an ID to >>search a database. The main form uses a tab page. I would like people >>to >>go to the tab for checking in and just read the barcode without having >>to >>hit enter. I also want to keep the number hidden, so I don't want it >>entered into a visible textbox. TabPages don't have a keypress event, >>so >>I'm not sure how to handle this. >> >> Thanks... >> > >
Larry Lard wrote: (warning: horrible trick follows)
If you set a TextBox to MultiLine = True, you can then change its Height to 0. In this state it is completely invisible, though it still receives input focus and keyboard input as normal.
LOL! I'm adding that to my bag of tricks. Thanks.
IIRC in VB5/6 I positioned controls off the left side of the form to do
similar. I haven't had the need yet in .NET so I haven't tried anything...
-- Mark
Actually that is what I am using, but thanks..
<eD******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com... I think this is a good example of web applications being over used and I would suggest heading towards a Smart Client type model. This model will allow you to interface directly to the scanner through a serial port or usb port and will provide the capabilities you are looking for...
http://msdn.microsoft.com/theshow/ep...5/manifest.xml and http://msdn.microsoft.com/smartclient/default.aspx
That worked great!!! Thanks.
"Mark Jerde" <Ma*******@newsgroup.nospam> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl... Larry Lard wrote: (warning: horrible trick follows)
If you set a TextBox to MultiLine = True, you can then change its Height to 0. In this state it is completely invisible, though it still receives input focus and keyboard input as normal.
LOL! I'm adding that to my bag of tricks. Thanks.
IIRC in VB5/6 I positioned controls off the left side of the form to do similar. I haven't had the need yet in .NET so I haven't tried anything...
-- Mark This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JimO |
last post by:
I teach HS computers and one of my kids has a web site with a textbox of
info that the user can scroll down and read. The problem is that users can
also enter text into it. Is there a way, or a...
|
by: Frans Bouma |
last post by:
Hello,
It seems VS.NET 2003 locks up itself and the complete shell (mouse locks
also) when entering a breakpoint in a special situation.
Below is the code to reproduce this behavior. It...
|
by: jayderk |
last post by:
I am writing an application that has I/O entering data in a text field. My
question is. does the event "textchanged" fire as soon as the data starts
changing.. for example... if 12345 is being...
|
by: sp |
last post by:
Hello Everybody,
How can I restrict the user entering non-numeric data in textbox control
on server side using asp.net. Any Code sample or suggestions are appreciated.
Thanks in advance
sp
|
by: Wayne |
last post by:
There is probably a simple solution to this but:
I have a textbox that is bound to a number field in a table. The field
type is "double". If I enter a negative value directly into the table
it...
| |
by: Rich |
last post by:
Hello,
I need to trap/detect when a textbox is entered via the tabkey. If the
textbox is not empty when entered via the tabkey then set focus to next
textbox. To enter that textbox would then...
|
by: Tom |
last post by:
Being a newbie to JS, I would appreciate some advice. When a visitor
enters a number into a textbox, I want to check that it is 15 digits long
and then display a message accordingly and the...
|
by: =?Utf-8?B?Qw==?= |
last post by:
I want to restrict the user entering nonalphanumeric keys using Javascript
onKeypress.
One exception is that I want to allow the user to enter spaces.
How can I do this?
Thanks in Advance.
|
by: Nathan Sokalski |
last post by:
I have a multiline TextBox that I want to display the text used to create a
control in an apsx file. I want each of these to be on a separate line in
the TextBox. The only way I know of to place...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |