Using: Motorola Q SmartPhone with Windows Mobile 5; SmartPhone SDK 5 project Visual Studio 2005
Here's a piece of code from MSDN that works:
Private Sub keypressed(ByVal o As [Object], _
ByVal e As KeyPressEventArgs) Handles MyBase.KeyPress
' Determine if ESC key value is raised.
If e.KeyChar = ChrW(Keys.Escape) Then
' Handle the event to provide your own functionality.
e.Handled = True
' Add your event handling code here.
MsgBox("Custom back key functionality.")
End If
End Sub
If I change this code from 'Keys.Escape' to 'Keys.Up' when I press the navigation wheel UP arrow, I get nothing. If I change it to Left or RIght or Down I still get nothing. Don't the UP, DOWN, LEFT, RIGHT arrow keys of the keyboard map to these navigation buttons on a SmartPhone in some way?
Why doesn't this code detect these navigation buttons.... it will detect the keyboard events...Help please. Thanks....