I have a form that contains a Form_Keydown subroutine and a textbox.
I am using a bluetooth numeric pad for input, so there is no mouse involved.
The first keypress should display the contents of a corresponding array contents (e.g. pressing 4 should display the array's fourth element).
The textbox should then be activated to allow the array's contents to be changed.
The form should then be closed by pressing the Enter key (or decimal point key).
Sounds simple.
However, as soon as the form is opened, the focus moves to the textbox and the Keydown sub is ignored.
Hitting the keypad's buttons enter numbers into the textbox, without the opportunity to display the existing array's contents.
Is there a way of removing focus from the textbox until after the first key is pressed?
Also, how do I move to another form after entering numeric input to the textbox?
Thanks
davydick 0 Newbie Poster
AndreRet 526 Senior Poster
davydick 0 Newbie Poster
AndreRet 526 Senior Poster
davydick 0 Newbie Poster
AndreRet 526 Senior Poster
davydick 0 Newbie Poster
AndreRet 526 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.