all groups > c# > april 2005 >
You're in the

c#

group:

best way to stop arrow key functionality


best way to stop arrow key functionality timma
4/7/2005 11:05:01 PM
c#:
I've got a c# winform control that I've created. Any time I press
down arrow or up arrow, even though I try to handle the key, it tries
to take focus away from my control. I've tried this with a bare
example control and it does the same thing so it's not something I'm
doing (I think at least). Anyone know how to prevent the arrow keys
from removing focus from a control?

RE: best way to stop arrow key functionality Salvador
4/8/2005 3:33:06 AM
Hi,

If you really want to go deep to the message to handle the arrow just
override the WndProc and catch the message before is sent to the owner.

Hope this helps
Salva


[quoted text, click to view]
AddThis Social Bookmark Button