best way to stop arrow key functionality

  • Thread starter Thread starter timma
  • Start date Start date
T

timma

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?
 
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
 
Back
Top