By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,835 Members | 1,173 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,835 IT Pros & Developers. It's quick & easy.

Entering text without a textbox.

P: n/a
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...
Nov 21 '05 #1
Share this Question
Share on Google+
8 Replies

P: n/a
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...

Nov 21 '05 #2

P: n/a
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...


Nov 21 '05 #3

P: n/a

(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...



Nov 21 '05 #4

P: n/a
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...
>>
>
>

Nov 21 '05 #5

P: n/a
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

Nov 21 '05 #6

P: n/a
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
Nov 21 '05 #7

P: n/a
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

Nov 21 '05 #8

P: n/a
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

Nov 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.