>>>>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
Cetin,
In this case the keypress truly doesn't fire at all, or at least this seems to be the case. The information above is usefull none the less, thank you for your comments.
Bruce.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only