Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close webbrowser form with Esc key
Message
From
23/05/2006 12:21:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
How to close webbrowser form with Esc key
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Informix
Miscellaneous
Thread ID:
01124304
Message ID:
01124304
Views:
98
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
Next
Reply
Map
View

Click here to load this message in the networking platform