Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem in keypress event
Message
De
20/11/2007 09:07:38
 
 
À
08/08/2007 08:42:20
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01246748
Message ID:
01270148
Vues:
19
How about this?
On Key Label f2 Do something
On Key Label f3 Do something else




>Dear all,
>I have a form with some vfp standard TextBox and some Microsoft Form 2.0 TextBox on it.
>I set KeyPreview to .T. and in KeyPress event of my form :
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nkeycode = 27
> thisform.Release
>ENDIF
>
>In vfp standard textbox, if i press ESC key, Keypress event run correctly, but in Microsoft Form 2.0 TextBox with below code:
>*** ActiveX Control Event ***
>LPARAMETERS keyascii
>thisform.keypress(keyascii)
>
>it occurs an error.
>when i check keyascii value, it is not numeric. it is an object.
>how i can solve this problem?
>thanks
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform