Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form.keypress event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00472195
Message ID:
00472204
Views:
25
In your form's keypress, when you fire the Save method, put NoDefault also to prevent keypress being passed to the control.

>Hi,
> I would liek to provide shortcut key in my data entry form, such as CRTL + S to save record and so on. I place my THISFORM.SAVE() in form.keypress event if crtl-s key is detected. I have set form.keypreview to .t. too. It work fine. The SAVE() method fired. However, I got a problem that, a funny characters associated to CTRL-S will be diplayed as square box in my text box. How to prevent it?
>
>Thank you
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform