Click here to Skip to main content
15,887,435 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am calling an active-x from internet add-on.This active-x is opening a Modal window.

Now i close the browser when this modal window is active.The browser gets closed ,but the active modal window does not close.

My problem is how can i close this modal window when the browser gets closed?
Posted
Comments
[no name] 16-Nov-15 0:46am    
Can you share code how are you opening modal popup in IE.
[no name] 16-Nov-15 0:52am    
You need a handle to the dialog and close it before browser closes. https://msdn.microsoft.com/en-us/library/windows/desktop/ms645472(v=vs.85).aspx
How to detect when browser closes? http://stackoverflow.com/questions/20853142/trying-to-detect-browser-close-event
Sergey Alexandrovich Kryukov 16-Nov-15 2:18am    
It all smells huge technology abuse...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900