Did you ever miss a B4PPC control event? This is the answer.
This library allows you to add more (missed) events to B4PPC controls.
Based on excellent code of the ".NET Compact Framework Team" found here http://blogs.msdn.com/netcfteam/archive/2005/05/20/420551.aspx
Needs .NET 2.0 (don't forget MyApp.EXE.config file)
DLLs for desktop and device among with sample project (source and exe) are attached.
Windows Events list can be found here http://wiki.winehq.org/List_Of_Windows_Messages and here http://www.autohotkey.com/docs/misc/SendMessageList.htm
A useful windows spy application (Winspector) can be downloaded here http://www.windows-spy.com/
Sample code used to move a label on a form while pressing arrow keys
This library allows you to add more (missed) events to B4PPC controls.
Based on excellent code of the ".NET Compact Framework Team" found here http://blogs.msdn.com/netcfteam/archive/2005/05/20/420551.aspx
Needs .NET 2.0 (don't forget MyApp.EXE.config file)
DLLs for desktop and device among with sample project (source and exe) are attached.
Windows Events list can be found here http://wiki.winehq.org/List_Of_Windows_Messages and here http://www.autohotkey.com/docs/misc/SendMessageList.htm
A useful windows spy application (Winspector) can be downloaded here http://www.windows-spy.com/
Sample code used to move a label on a form while pressing arrow keys
B4X:
[FONT=Courier New][SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]Globals[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]App_Start[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#008000] 'Add dzEventsMagic object and name it dzem[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] dzem.New1([/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000]"Form1"[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], true)[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#008000] 'Hook WM_KEYDOWN message[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] dzem.Hook([/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]256[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2])[/SIZE][/FONT]
[SIZE=2][FONT=Courier New] Form1.Show[/FONT][/SIZE]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]Form1_Close[/SIZE][/FONT]
[SIZE=2][FONT=Courier New] dzem.UnHook([/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080]256[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2])[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]dzem_MagicEvent[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#008000] 'Left Arrow[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] dzem.wParam = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]37 [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Text = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000]"LEFT"[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] label1.Left > [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]0 [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Left = label1.Left - [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#008000] 'Up Arrow[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] dzem.wParam = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]38 [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Text = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000]"UP"[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] label1.Top > [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]0 [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Top = label1.Top - [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#008000] 'Right Arrow[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] dzem.wParam = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]39 [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Text = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000]"RIGHT"[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] label1.left < Form1.Width - label1.Width [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Left = label1.Left + [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#008000] 'Down Arrow[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] dzem.wParam = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]40 [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Text = [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000]"DOWN"[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] If[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2] label1.Top < Form1.Height - label1.Height [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2] label1.Top = label1.Top + [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] End [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT]
[SIZE=2][FONT=Courier New][COLOR=#0000ff]End Sub[/COLOR][/FONT][/SIZE]