L
Lord Zoltar
Hello,
I have a problem with buttons automatically stealing focus from other
controls:
I have on a form a couple labels that respond to certain key events,
such as the left and right arrow. When any key is pressed, the buttons
gain focus and the labels lose focus, and the label never gets to
respond to the KeyDown event.
Is there a way to prevent the button from ever receiving focus from a
key event (the button still has to respond to clicks from the mouse)?
I have a problem with buttons automatically stealing focus from other
controls:
I have on a form a couple labels that respond to certain key events,
such as the left and right arrow. When any key is pressed, the buttons
gain focus and the labels lose focus, and the label never gets to
respond to the KeyDown event.
Is there a way to prevent the button from ever receiving focus from a
key event (the button still has to respond to clicks from the mouse)?