Problem with the OnKeyDown event...
-
Hi, I experienced a strange problem - I am currently building an application that has a user control in it and for this control I want to trap the pressing of the ARROWS keys. BUT... The problem is that only the OnKeyUp event occurs for THOSE KEYS - this is not what I need :(( I tried overriding the ProcessKeyMessage method and found out that the control actually is not RECEIVING the WM_KEYDOWN message for the ARROW keys! Any idea how to solve this problem? Thanks, Georgi
-
Hi, I experienced a strange problem - I am currently building an application that has a user control in it and for this control I want to trap the pressing of the ARROWS keys. BUT... The problem is that only the OnKeyUp event occurs for THOSE KEYS - this is not what I need :(( I tried overriding the ProcessKeyMessage method and found out that the control actually is not RECEIVING the WM_KEYDOWN message for the ARROW keys! Any idea how to solve this problem? Thanks, Georgi
-
I had thesame trouble, try to check another methods containing "key" in their names. I override ProcessKeyPreview and ProcessDialogKey in similar case. Or use KeyUp() ... Hi, AW
-
I had thesame trouble, try to check another methods containing "key" in their names. I override ProcessKeyPreview and ProcessDialogKey in similar case. Or use KeyUp() ... Hi, AW
All that you have to do is to override
IsInputKey
and then you'll be able to process key inOnKeyDown
method
"...hasn't really been well accepted ... as the ratings tell us so far :)" - Nishant S
-
Hi, I experienced a strange problem - I am currently building an application that has a user control in it and for this control I want to trap the pressing of the ARROWS keys. BUT... The problem is that only the OnKeyUp event occurs for THOSE KEYS - this is not what I need :(( I tried overriding the ProcessKeyMessage method and found out that the control actually is not RECEIVING the WM_KEYDOWN message for the ARROW keys! Any idea how to solve this problem? Thanks, Georgi
All that you have to do is to override
IsInputKey
and then you'll be able to process key inOnKeyDown
method
"...hasn't really been well accepted ... as the ratings tell us so far :)" - Nishant S