Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close webbrowser form with Esc key
Message
De
23/05/2006 12:21:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
How to close webbrowser form with Esc key
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Informix
Divers
Thread ID:
01124304
Message ID:
01124304
Vues:
102
I preview drill-down reports in VFP form containing WebBrowser ActiveX control as described in Doug Hennig FoxTalk article in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxtk05/html/ft05c11.asp?frame=true

However, pressing Esc key does not close the preview window. I set forms keypreview propery to .T. and added the following code to form keypress event but this does not work. Any idea ?
LPARAMETERS nKeyCode, nShiftAltCtrl

if m.nShiftAltCtrl=0 and m.nKeyCode = 27
    if thisform.queryunload()
        thisform.release()
        ENDIF
    nodefault
    return
endif
Andrus
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform