*** Quote ***
Hi,
I am facing an another irritating issue. The thing is on a simple form I place four fields in this sequence: Barcode, Item Code, Item Description
and Selling Price and three buttons 1. Next, 2. Change Price and 3. Exit.
When I use barcode scanner to determine the selling price, it displays the result but it does not stop and goes back to barcode field.
It is very strange that the same form works perfectly when I call this form from another form, but when I call this form directly means from menu or Top level form it works like that which I described above.
Please suggest me what wrong with this.
*** End Quote***
You just want to position back the cursor to your Barcode text box, am I right? If so, just place a small code to the next control that got the focus after a successful search scan. e.g. if the next control in focus is
item code then put something on the gotfocus procedure like thisform.txtbarcode.setfocus()
Normally if you scan an item using barcode scanner, the cursor will move to next control. I have a POS app and as for my case, I haven't make it stay on the barcode " field" when scanning, unless i put a code after the search "Return 0"....
Your approach might be different with mine, but if you just want to put back the focus on your barcode field, look on setfocus and gotfocus..