Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00691654
Message ID:
00691660
Views:
13
In the form, set the Keypreview property to .T.
In the keypress method of the form put something like this:

IF nKeyCode = 13 AND ThisForm.Wsgrid1.Activerow <> 0
ThisForm.Btn_Ok.CLICK
ENDIF


>Is there a way to do the following -
>
>On a grid control, after the user clicks on the row (selects a row/column cell) and hits enter key ; I need to run the click event of the commond button on the same form.
>
>Thanks.
>Neetu
Eric.
Previous
Reply
Map
View

Click here to load this message in the networking platform