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).
JavaScriptVisual Basic Classic

Avatar of undefined
Last Comment
Computer101
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.
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

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.
Avatar of scottmichael2
scottmichael2

ASKER

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?
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

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.


Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

So, did the OP try to convert the code shown in the link I provided?
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

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
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

Yes, it should have been placed in the VB TA. OP=Original Poster.
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo