uhm... your piece of code in KeyDown is interesting.. I have not the same
code here.. but something similar and it works for me... Ok I understand
there is a reason you are doing this, but I don't see anything like ignoring
the Up and Down arrow key..so try this.
if ( e.KeyCode == Keys.Up
|| e.KeyCode == Keys.Down)
{
e.Handled = false;
return;
}
that seems to work.. for me here..
Vijay
<br************@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Cheers for that Vijay but that didn't work. I put the following in my
form designer:
this.KeyPreview = true;
And under the KeyDown event, i have:
private void MovieListForm_KeyDown(object
sender,System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyCode == Keys.Down)
{
this.MovieListPage.CurMenuItem++;
}
else if(e.KeyCode == Keys.Up)
{
this.MovieListPage.CurMenuItem--;
}
}
Yet focus is still given to the buttons when i press the Up and Down
arrow.
Any other suggestions?
Regards,
Brian