>Thanks.But setfocus() is not working perfectly. I have just tried it and found that Command2 button is focusing but not waiting for next option.Only a wait is halting it from moving.I want to focused on command2 button and pressing enter the next will occur.
>
>Waiting for tips.
>
>Chandan
I didin't uderstand what you ae trying to do. After the user press Enter in Text9 you want to enable all buttons and click on button2 ate the same time?
If it i so (With Naomi' sugestion):
if nKeypress=13
STORE .t. TO form1.command2.enabled,;
form1.command3.enabled,;
form1.command4.enabled
form1.command2.SetFocus()
form1.command2.Click()
endif
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.