Hi Nadya....
>1) Use this.parent.text1.SetFocus() instead of full object reference...
I've tried this... same result.
>2) When you invoke your messagebox(), after it finishes, Form.Activate fires.
>Check, what code do you have here
Already checked this.. is not the problem. < s >
>3) Your command button may have some code from your commandbutton class, which >executes.
Nope.
>4) Are you sure, your textbox is enabled? :)
Yes.... enabled is never set to .f. anywhere.
>5) What code do you have in textbox.GotFocus, SetFocus, LostFocus...
.........
Gotfocus.... a label caption setting...nothing else
Tom Gahagan
Alliance
Computer Solutions
"Music, like sex, is much too important to be left to professionals."
Robert Shaw