![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
The form never gets the focus if there are any other controls on it that can be focused.
One solution is to change the form's KeyPreview property using the Door library: Door library (Beta) - Special library (first example). After adding this code you can use Form1_KeyPress event to handle the D-Pad buttons. |
|
||||
|
Thanks so much for the response. I still must not be getting it, the following code does not display any msgbox when the D-Pad keys are pressed.
Thanks, dave ' Uses door.dll, ofrm is an object Sub Globals 'Declare the global variables here. End Sub Sub App_Start Form1.Show ofrm.New1(false) ofrm.FromControl("Form1") ofrm.SetProperty("KeyPreview",true) End Sub Sub ControlName_KeyPress (SpecialKey) Msgbox (SpecialKey) End Sub |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| D-Pad Navigation Sample (?) | Dave Mitchell | Questions & Help Needed | 1 | 05-14-2008 05:29 AM |
| Forum Navigation | dennishea | Questions & Help Needed | 1 | 02-15-2008 06:52 PM |
| Desktop IDE: Sub tree navigation minimal bug | Woinowski | Bug Reports | 0 | 01-16-2008 07:20 AM |
| GPS map navigation and routing | zen | Questions & Help Needed | 11 | 10-08-2007 06:44 AM |