I'm a relative beginner to VB (5) and I'm working with the WebBrowser control.

I've got a basic browser up and running with a few added functions that I needed. Happy days.

However! When a new window is spawned (usually by Javascript:window.open), I handling this by using NewWindow2 to create a new instance of a simple browser form (empty form with a browser).

I´m having two issues with this new form:

(1) When the window is created it does not show the scrollbar until a resize takes place, even if the html contents of the window are much larger than the window itself. Once the resize occurs the scrollbar appears immediately...

(2) If the opened document is closed with javascript "window.close();" the browser closes and I´m left with an empty, unclosed form! Nice! Obviously, I´d like to detect that the browser has been closed and unload the form. I've been playing with the various events (like the WebBrowser Quit event) but none seem to be triggered when this occurs...

Any help greatly appreciated.

Shaun.

PS: This forum is "the business".