Control PopUp Window

MichaelV
03-26-2003, 02:28 AM
Hello,

I tried to use the search function for my question but i couldn't find the answer i needed.

I am making an application which uses the Webbrowser function. On 1 of the pages that needs to be checked a popup window is configured.

In that popup window i need to do some actions but i can't get control over the window because it opens in Internet Explorer and not in Visual Basic. The popup is loaded by a Body ONLOAD on the page.

Can somebody help me out here?

Thanks in advance,

Michael

Aspen2K
03-26-2003, 01:19 PM
You need to trap the new window in the Webbrowser1_NewWindow2 event. You should be able to capture it and shove it into a new webbrowser control on a new form. From there you can Play with the page, filling in the form fields etc ...

There is an example here somewhere on the subject.

Here is the link to the file http://visualbasicforum.com/showthread.php?threadid=42850


Hth,
Aspen2K

MichaelV
03-26-2003, 10:56 PM
Thanks man!

That's what i needed!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum