0

I have 4 buttons with keydown events but only 1 button is working and that is the one with focus. How can i solve this so all button events can occur when i use keyboard no matter what control has focus?

Adi543
  • 29
  • 1
  • 5

1 Answers1

0

If you want all the buttons to receive the KeyDown event, you should handle the event on their common parent window instead on the individual buttons. In order for that to work, you should also set the Form.KeyPreview property to true.

Arnon Axelrod
  • 1,444
  • 2
  • 13
  • 21