Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with KeyPress event of a form
Message
From
30/11/1998 04:43:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/11/1998 10:44:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00162222
Message ID:
00162341
Views:
25
>>>I am developing an application where it has become neccasary to fall into a loop and process keypress events from the active form and process click events from the buttons on the form. I am doing this by falling into a do while loop and calling "do events". The click events from the buttons get processed but the keypress event on the form (and it does have keypress preview on) never fires. Anyone know why ?
>>When form.keypreview is on, form.keypress fires first and then the keypress of control that has focus.
>>Cetin
>
>But why doesn't the code in the form's keypress event fire ?
>
>Bruce
Keypress fires, but there are cases where keypress doesn't fire :
- An ALT+key combination
- A key combination that's set as a menu shortcut (ie: Ctrl+C).
- A key combination reserved by windows (ie: Ctrl+ESC)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform