A
Amos Soma
In my Win form, I have KeyPreview set to True. In my form KeyUp method, I
have the following code:
if (e.KeyCode == Keys.F10)
{
e.Handled = true;
MessageBox.Show( "F10 pressed" );
}
The message is displayed correctly. However, focus moves off my form and
unto my menu, even though I have e.Handled set to true. How can I prevent
this from happening?
Thanks.
have the following code:
if (e.KeyCode == Keys.F10)
{
e.Handled = true;
MessageBox.Show( "F10 pressed" );
}
The message is displayed correctly. However, focus moves off my form and
unto my menu, even though I have e.Handled set to true. How can I prevent
this from happening?
Thanks.