I have a text box control.
When a value is keyed in the text box I want the remainder of the text to be filled in from a look up.
For example I have an array with 3 items:
"BOB"
"BOB BARKER"
"BOB BAXTER"
When the user keys "BO" I want to go through the array and complete the text box with the first match found reading from the left - i.e. "BOB"
Or if the user was to key "BOB BA" the text box would complete to "BOB BARKER"
Or if the user was to key "BOB BAX" the text box would complete to "BOB BAXTER"
I'm OK with navigating around the array etc but what I am unsure of is where to capture and process the keypresses.
I am guessing in the text box Key Up Event? But if the user presses tab to move to the next control, the key press does not seem to be not processed and the cursor does not move on. I don't really want to have to code what should happen for all key presses - e.g. if tab pressed then txtNext.SetFocus
Hope you can help.
When a value is keyed in the text box I want the remainder of the text to be filled in from a look up.
For example I have an array with 3 items:
"BOB"
"BOB BARKER"
"BOB BAXTER"
When the user keys "BO" I want to go through the array and complete the text box with the first match found reading from the left - i.e. "BOB"
Or if the user was to key "BOB BA" the text box would complete to "BOB BARKER"
Or if the user was to key "BOB BAX" the text box would complete to "BOB BAXTER"
I'm OK with navigating around the array etc but what I am unsure of is where to capture and process the keypresses.
I am guessing in the text box Key Up Event? But if the user presses tab to move to the next control, the key press does not seem to be not processed and the cursor does not move on. I don't really want to have to code what should happen for all key presses - e.g. if tab pressed then txtNext.SetFocus
Hope you can help.