Button Focus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application that connects to a blue tooth scanner for all of its
input. For some reason every now and then the buttons are getting the focus
somehow and instead of there names being correct they get named a barcode or
whatever input the device is given. I've tried the locked property to
prevent this from happening, but that doesn't work. Do most people just call
the click event when the button has the focus or what other suggestions do
you have?
 
Not sure I get your scenario...

If you are seeing your button text change when you don't expect it, search
your project for the .Text property and see where it is you are assigning
that.

If you don't want your button to receive the focus for a set period of time,
set its Enabled property to false.

Cheers
Daniel
 
I designed a warehouse application that our employees use to pick orders with
via a scanner that connects to our handhelds. Somehow the focus is leaving
the text box where the barcode should go and placing itself on the button.
When they scan a barcode it renames the buttons text with the barcodes
numbers. I just can't figure out how its getting the focus because the only
event that the button has is OnClick and I never transfer the focus to the
button.

Sorry if that doesn't make any sense.
 
OK.. I've never used a scanner/barcode app so I have no insights... maybe
some tab event is occurring moving the focus to the button...

What happened when you set the button's Enabled property to false?

Cheers
Daniel
 
I'll bet it does return a tab. That would explain sudden movements between
things. Thanks so much for your help.
 
Most scanners are configurable for suffix and prefix data. Take a look a
the users manual for adjusting this.

-Chris
 
Back
Top