Keydown Event losing focus

  • Thread starter Thread starter David Webb
  • Start date Start date
D

David Webb

Hi,

I'm using the Keydown event on a form with a panel and scroll bar on
it, to trap the user pressing the hardware scroll buttons. It works
fine when the form is first loaded, however if the use selects a
control, then the scroll bar doesn't work on the form any more. Is
there a way of ensuring that the form always has focus so if the
scroll bars are pressed, the keydown event is fired as when the form
first loads?

Regards,

David.
 
What you need is KeyPreview which is not supported in V1.0 of NETCF.

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top