
WebBrowser Control Page Sizing Events
I have a VB Form that contains a WebBrowser control. I have written
code that handles the NewWindow2 Event, and I force the returned Object
to be another instance of my Form, which is registered as a browser.
All of this works fine in Windows NT and Windows 2000.
It works in Windows 98 too, but the height of the window is 0. So all
I see when an HTML page has javascript that calls window.open(...), is
the title bar of the popup window. The user can resize the window,
but this is not acceptable.
So I wrote more code to handle the WindowSet... events. Again, it
works in NT and Windows 2000, and the windows open to the proper size.
But it doesn't work in 98. I don't think I'm getting the
WindowSetHeight event, or if I am getting it, the value is 0.
I'm tempted to write logic that hardcodes the height to 300 pixels and
the width to 400 pixels if they are zero when the page resizes. At
least this way, the user will see some of the body of the contents.
But I was hoping someone else has exerienced this problem and has a
solution.
Thanks.
Sent via Deja.com
http://www.*-*-*.com/