I am coding an app using Jett Xl handheld PC running Windows CE .NET 5.0. It has a full keypad that I am attempting to detect key combinations such as Control C (^C), etc.
The following code will detect a KeyPress such as the letter "O":
I tried something like:Code:Private Sub frmMain_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress Dim chrKeyPress As Char chrKeyPress = e.KeyChar.ToString.ToUpper If chrKeyPress = "O" Then frmOptions.Show() e.Handled = True End If
No luck, that must be older .Net, does not seem to be supported. Is there another method that is supported in VS 2005 and CF20?Code:If e.shift Then Then MsgBox("Shift") End If




Reply With Quote