Hi All,
I know I have done this many times but can't seem to get this very simple thing right.
On a modal form I have 3 text boxes (among other things). The first is used to select a value to use to search for. From LostFocusEvent of this I show a MESSAGEBOX() saying key not found and want to return to the same textbox. I have SetFocus every way I can think of but the cursor always goes to the next tab stop. Tabs are set in the correct order if that makes any difference. VFP 6.0. How can I force the cursor back where it came from.
Sounds preschool to me but I can't get it.
Thanks for any suggestions.
Judi
I know I have done this many times but can't seem to get this very simple thing right.
On a modal form I have 3 text boxes (among other things). The first is used to select a value to use to search for. From LostFocusEvent of this I show a MESSAGEBOX() saying key not found and want to return to the same textbox. I have SetFocus every way I can think of but the cursor always goes to the next tab stop. Tabs are set in the correct order if that makes any difference. VFP 6.0. How can I force the cursor back where it came from.
Sounds preschool to me but I can't get it.
Thanks for any suggestions.
Judi