PDA

Click to See Complete Forum and Search --> : TAB-key problem


Inhumanoid
Dec 12th, 1999, 04:54 PM
I need to execute a function when the tab key is pressed....
The function needs only be executed while a combobox has the focus. When Tab is pressed the focus should go to a treeview..

The current status is that on pressing tab the focus goes to the treeview. I can't get the code to be axecuted though...

I tried the forms keydown and keypress as well as the comboboxes keydown and keypress...

Anybody got a clue ??

john_murphy
Dec 12th, 1999, 05:21 PM
What you could do is in the lostfocus event of the combo box look to see if the last key pressed was tab and execute your code in there??????

Inhumanoid
Dec 12th, 1999, 05:36 PM
Good one.... Works