>Looks like you have to resort to the old way of binding to events. That is, write a FLL that changes the window procedure of the Control and use _Execute() to run some VFP code in this case.
Christof, thank you.
Where to find sample about using this technique ?
The HTML displayed in Web Browser is generated by VFP Report Listener. I think it is possible to change Listener XML stylesheet so that it adds javascript to xml which closes web page like
body onkeydown="if (!event.ctrlKey && !event.altKey && event.keyCode==27)
window.close();"
How to close VFP form if browser window is closed ?
How to call vfp code from javascript ?
Doug has second article in FoxTalk which describes how to create drill-down reports using new VFP Report preview window.
Should I switch to this instead of trying to use Web Browser control ?
Andrus