Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C0000005 in Treeview keypress
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
C0000005 in Treeview keypress
Divers
Thread ID:
00633579
Message ID:
00633579
Vues:
61
VFP 7 / WindowsXP / VFP7 / Form with a MS Treeview Control 6.0(SP4).

The Cancel property of the form's Exit button is set to .T.

I'd like to exit the form when the user presses ESC while the Treeview has the focus (which is most of the time, I use it as a pick list)

I have this code in the keypress method of the Treeview:
*** ActiveX Control Event ***
LPARAMETERS keyascii

if keyascii = 27
   thisform.cmdexitg1.Click()
   nodefault
*  thisform.KeyPress(keyascii)  && tried this too, but ii does nothing...
else
   dodefault()
endif
It works, it presses the Exit button, the form exits, and then I get C0000005. Any ideas what's wrong?

TIA
Doru
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform