[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 704
  • Last Modified:

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).
0
scottmichael2
Asked:
scottmichael2
  • 5
  • 2
  • 2
  • +1
1 Solution
 
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
b0lsc0ttCommented:
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
 
b0lsc0ttCommented:
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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 5
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now