V
vbMark
Hello,
I am running Visual Studio 2003 with .NET Compact Framework 1.1.4322 SP1.
I have this code in a class:
Protected Overloads Sub OnKeyDown(ByVal e As KeyEventArgs)
Select Case e.KeyCode
Case Keys.Up
MessageBox.Show("Up Key Pressed")
Case Keys.Down
MessageBox.Show("Down Key Pressed")
Case Keys.Left
MessageBox.Show("Left Key Pressed")
Case Keys.Right
MessageBox.Show("Right Key Pressed")
End Select
MyBase.OnKeyDown(e)
End Sub 'OnKeyDown
Keys.Left and Keys.Right events are captured
but not Keys.Up and Keys.Down.
Why is this? How do I capture those events?
Thanks,
Mark
I am running Visual Studio 2003 with .NET Compact Framework 1.1.4322 SP1.
I have this code in a class:
Protected Overloads Sub OnKeyDown(ByVal e As KeyEventArgs)
Select Case e.KeyCode
Case Keys.Up
MessageBox.Show("Up Key Pressed")
Case Keys.Down
MessageBox.Show("Down Key Pressed")
Case Keys.Left
MessageBox.Show("Left Key Pressed")
Case Keys.Right
MessageBox.Show("Right Key Pressed")
End Select
MyBase.OnKeyDown(e)
End Sub 'OnKeyDown
Keys.Left and Keys.Right events are captured
but not Keys.Up and Keys.Down.
Why is this? How do I capture those events?
Thanks,
Mark