Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login form - simple question
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00654315
Message ID:
00654328
Views:
18
>>>Hi everybody,
>>>
>>>We have a login form with two textboxes and two command buttons (Login and Cancel). User types user name, presses Enter, cursor moves to password, he types it, presses Enter and the cursor goes to Login button, but doesn't fire the click, so user has to press Enter button again.
>>>
>>>Do you know, how can we exclude the necessaty of this additional click?
>>>
>>>Thanks in advance.
>>
>>*** txtPassword.LostFocus()***
>>this.parent.cmdLogin.Click()
>>
>
>Interesting... However, what if he/she types password, then decides to go back to User ID field? :)

Try this instead:

***txtPassword.KeyPress()***
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13
this.parent.cmdLogin.Click()
ENDIF
John Fatte'

Life is beautiful!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform