I have a form with some command and textbox control on it.
One command button i called that COMMAND2 must select one of this options in LOSTFOCUS method :
1- keyboard press cause i lost my focus.
2- mouse click cause i lost my focus.
I think you are going to need to be a bit clearer in your query.
If you mean that clicking off, or tabbing off, the command button should set the focus to the textbox, then in the lostfocus method for the command button you could put thisform.text1.setfocus
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.