Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid control's KeyPress event not firing?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00798515
Message ID:
00798557
Vues:
21
Thanks Fred.

What you said makes sense ... almost too simple actually ... makes me feel kind of dumb for asking. 8?)

Rodd

>>In my grid's KeyPress event, I placed the following:
>>
>>= messagebox("Key = " + TRANSFORM(nKeyCode,"999"))
>>
>>I have the grid's RowSource set to a valid SQL statement and it's RowSourceType = 4.
>>
>>When the grid gets focus, I can punch any key I want to and the KeyPress event (and thus my messagebox) never fires. Why is this? Does the RowSource have to be editable? Is there another setting that has to be enabled before the grid's KeyPress event will fire?
>
>The grid.KeyPress only fires when you're not on a row. What's actually firing is the control's .KeyPress of whatever column you're actually in.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform