>I need to set focus to several objects depending on the content of the current textbox if the TAB or ENTER key is pressed, so I'm using the MyForm.MyCurrentTextBox.KeyPress method to check if the nKeyCode is 13 or 9, if theis is true I set focus to the desired object with MyForm.MyDesiredObject.setfocus(), the problem is that the ENTER or TAB is kept in the buffer and is executed when MyDesiredObject already has the focus causing this object to loose the focus and the next object gets it.
>Any tips to share?
Do a NODEFAULT in the KeyPress method when its a 13 or 9.