Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse or Keyboard

Status
Not open for further replies.

nevin2007

Programmer
Aug 21, 2009
31
IR
Hi

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.

How ?
thanks.

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top