Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close webbrowser form with Esc key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Informix
Divers
Thread ID:
01124304
Message ID:
01124316
Vues:
15
Hi Andrus,

You must redefine KeyUp event of OLE Control, because this controls has higher priority.

MartinJ


>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform