Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My KeyPress not Pressing!
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
My KeyPress not Pressing!
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01427928
Message ID:
01427928
Vues:
151
Hi Gang!

I have a form with a grid on it.

I want the grid's keypress event to fire and capture the ENTER key when it is pressed on a row.

Here is the code in the Keypress Event
LPARAMETERS nKeyCode, nShiftAltCtrl

*If ENTER key pressed, the click the checkbox for this row...
IF nKeyCode = 13
	This.column20.chkSelected.Click
ENDIF 
The Form's KeyPreview Property is FALSE.

When I run the form and press the ENTER key when the grid has focus, the Keypress Event does not Fire.... I put a break on the IF nKeycode = 13 line, but it does not stop there. I even put a SET STEP ON in the event.

So...?????? Any ideas why the Keypress Event does not fire when I press any key in the grid?

Thanks!
Tommy Tillman A+ NetWork+ MCP
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform