Link to home
Start Free TrialLog in
Avatar of scottmichael2
scottmichael2

asked on

Capture window.showModalDialog Event?

How do I capture the event that is fired when window.showModalDialog is called (using VB 6.0 and the DOM).
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

The onShowDialog event perhaps?
Avatar of scottmichael2
scottmichael2

ASKER

Is there such a thing?  I can't find any documentation on it (in the DOM).  I can't access my work PC until tomorrow to try it, so I can't verify that it works.  Do you have a link to a reference on this?  Thanks.
Yes, you are right. I was looking at a Delphi control that had it.
And looking at the DWebBrowserEvents2 Interface reference, I see nothing about
how it could be done in VB.
Durn - the only thing I can figure to do is enumerate all of the IE Windows and look for the caption of the one I need.  Can anyone think of a better way?
nope, I know that there is some code, although it's in C#, showing how to capture the Save As dialog
to set save options on www.codeproject.com. That may show a technique that you can use.
Here is the link: http://www.codeproject.com/shell/iesaveas.asp

It's done by installing a Windows Hook.


So, did the OP try to convert the code shown in the link I provided?
EddieShipman,

What is OP?

Thanks for your reply and comment.  The zone this was placed in might have thrown me off.  As I reread this and notice the VB 6.0 reference I realize this isn't for a browser client script solution.  Although your comment doesn't seem to have the "complete" answer I would normally like the code in the link might be just what the Asker needs to get started.  I will change my recommendation.  Hopefully the Asker will post so we can know what the result was.

    Changed recommendation:  Accept: EddieShipman {18800167}

Please post any objections or questions.  Thanks again EddieShipman for your reply.

b0lsc0tt
EE Cleanup Volunteer
Yes, it should have been placed in the VB TA. OP=Original Poster.
It was actually cross-posted, here and in VB.  Thanks for explaining OP; I guesses what you meant but couldn't figure out the exact words. :)

bol
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial