Help with capturing events.

  • Thread starter Thread starter vbMark
  • Start date Start date
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'm using Visual Basic.NET on a Smartphone emulator.

When I add the line:
Implements IMessageFilter

I get the error message:
Type 'IMessageFilter' is not definded.

I can't figure out what it needs.

Thanks
 
Wow and wow! OpenNETCF is great!

Thanks for the information. I found out my version is actually
1.0.3111.0

Thanks again.
 
Back
Top