Hi all,
I am currenly developing a touch screen application and I would like to have a on screen keybaord for data entry (as it is a kiosk unit)
My question is how do I do this ?
I have User Name & User Password text boxes and I would like it when they are in the user Name box they could enter thier id with the onscreen keyboard and then when they press enter the system would then go to the Password box and they could enter thier password.
I can do this if there is only one box but not 100% sure how to do it for more then one box. Do I use an array? or setfocus (how to get the chrs to enter via the touch buttons?)
Advice or sample code would be really nice
Thanks
Andy
, For the keyboard, create a control array of command buttons, put a different letter on each one, then in the click event of the button do something like this
Text1.Text = Text1.Text & Command1(Index).Caption
However, you have to create other buttons and account for that too, like space, backspace, shift etc.
, One way would be this. Make all the Text boxes one control array. So you'll have txtInput(0) to txtInput(19), for example. Create a global Integer variable named intActiveInput. On form Load it's value will be zero.
In the keypress do this
txtInput(intActiveInput).Text = ....
And on the Tab keys (or next/prev keys) do this
intActiveInput = intActiveInput + 1
If intActiveInput > 19 Then intActiveInput = 0
(on prev key it would be -1 and check if <0 then = 19)
, YAY Thanks guys it works