?
Solved

Capture window.showModalDialog Event?

Posted on 2007-03-26
11
Medium Priority
?
692 Views
Last Modified: 2008-01-09
How do I capture the event that is fired when window.showModalDialog is called (using VB 6.0 and the DOM).
0
Comment
Question by:scottmichael2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +1
11 Comments
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18795566
The onShowDialog event perhaps?
0
 
LVL 1

Author Comment

by:scottmichael2
ID: 18795831
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
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18796060
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
Independent Software Vendors: 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!

 
LVL 1

Author Comment

by:scottmichael2
ID: 18799370
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
 
LVL 26

Expert Comment

by:EddieShipman
ID: 18800167
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
 
LVL 26

Expert Comment

by:EddieShipman
ID: 19521798
So, did the OP try to convert the code shown in the link I provided?
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 19523567
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
 
LVL 26

Expert Comment

by:EddieShipman
ID: 19525088
Yes, it should have been placed in the VB TA. OP=Original Poster.
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 19525697
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19544754
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question