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).
LVL 1
scottmichael2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Eddie ShipmanAll-around developerCommented:
The onShowDialog event perhaps?
0
scottmichael2Author Commented:
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.
0
Eddie ShipmanAll-around developerCommented:
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.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

scottmichael2Author Commented:
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?
0
Eddie ShipmanAll-around developerCommented:
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.


0
Eddie ShipmanAll-around developerCommented:
So, did the OP try to convert the code shown in the link I provided?
0
b0lsc0ttIT ManagerCommented:
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
0
Eddie ShipmanAll-around developerCommented:
Yes, it should have been placed in the VB TA. OP=Original Poster.
0
b0lsc0ttIT ManagerCommented:
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
0
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.