tyedyejenn
Programmer
I have looked through other postings and see lots of help for having the enter key work like the tab key, but what I need is just the opposite:
I have a button on my form with the default property set to true so when the user presses the enter key the code in the cmdButton_click event executes, that part is ok
However most of the users I am dealing with are more likely to press the Tab key, so if the user presses the tab key from within a textbox I want the code in cmdButton_click to execute
I have tried trapping for the vbKeytab in the keypress, keyup, and keydown for my textbox and also in the form keyup, keydown and keypress events and so far none of that works
Any suggestions on how to trick my program into treating the tab key like the enter key would be greatly appreciated
Thanks
Jenn
I have a button on my form with the default property set to true so when the user presses the enter key the code in the cmdButton_click event executes, that part is ok
However most of the users I am dealing with are more likely to press the Tab key, so if the user presses the tab key from within a textbox I want the code in cmdButton_click to execute
I have tried trapping for the vbKeytab in the keypress, keyup, and keydown for my textbox and also in the form keyup, keydown and keypress events and so far none of that works
Any suggestions on how to trick my program into treating the tab key like the enter key would be greatly appreciated
Thanks
Jenn