
Trap when the WebBrowser control finishes rendering
FWIW...
The control gets resized, but VB never sees it happen, so it still has the
old control sizes. If I set the control back to its original size, VB
assumes it's already that size and doesn't do anything.
In the DOCUMENTCOMPLETE event, if I say:
webControl.width= mywidth-1
webControl.width= mywidth
It FIXES the problem.
If I don't do the -1 step first, VB never sees a change... BAH! It should
resize anyhow.
...anyhow, that's my rant. Hope it helps someone else!
Quote:
> Hi!
> How can I trap when the WebBrowser control has finished rendering?
> A couple pages I visit try to resize the browser, messing up my form
layout.
> None of the events I find are firing AFTER the page resizes and finishes
> rendering.
> I need to be able to make sure the webBrowser control fits MY form layout
> and not the webpage authors intended layout.
> Thanks!