For some reason, I am not snagging the event. I have created a base child
form where the derived child form is embedded within an MDI parent
container. The child form is in focus and when I press the appropriate
function key, no event is fired.
My test code looks as follows:
private void ChildViewBase_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.F1:
F1KeyPressed();
break;
case Keys.F2:
F2KeyPressed();
break;
}
protected virtual void F1KeyPressed() {}
protected virtual void F2KeyPressed() {}