Hi Craig,
>
>Thanks for all your responses! On this one though I have an additional question. I tried your setFocus() work around and it works great except for one thing. If the last control is a button and I put the code THISFORM.FirstControl.SetFocus() in its lostFocus method then click on that button at run time I set focus to the first control instead of invoking the click method of that buttom. What's the best way to handle this if I absolutle have to keep this button as the last tabbed control of that form?
>
That's very simple. For command buttons use Click code instead of LostFocus, e.g.
CommandButton.Click()
... (your code here)
thisform.FirstControl.SetFocus()
HTH
If it's not broken, fix it until it is.
My Blog