I'm missing something, because I'm just not understanding this process. I'm
using a Form (no derived controls or derived forms) and I want to catch the
arrow keys. I've got the overridden ProcessDialogKey written (see below),
but it isn't called when I press the appropiate keys. How do I call it??
thanks,
Jim
protected override bool ProcessDialogKey(System.Windows.Forms.Keys keyData)
{
switch (keyData)
{
case Keys.Down:
MessageBox.Show("Down arrow");
break;
case Keys.Up:
MessageBox.Show("Up arrow");
break;
case Keys.Left:
MessageBox.Show("Left arrow");
break;
case Keys.Right:
MessageBox.Show("Right arrow");
break;
default:
break;
}
}