Help with capturing events.

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
 
V

vbMark

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
 
V

vbMark

Wow and wow! OpenNETCF is great!

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

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top