Trap when the WebBrowser control finishes rendering 
Author Message
 Trap when the WebBrowser control finishes rendering

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!



Sun, 02 Jan 2005 12:50:52 GMT  
 Trap when the WebBrowser control finishes rendering


Fri, 19 Jun 1992 00:00:00 GMT  
 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!



Mon, 03 Jan 2005 15:58:40 GMT  
 Trap when the WebBrowser control finishes rendering


Fri, 19 Jun 1992 00:00:00 GMT  
 Trap when the WebBrowser control finishes rendering
Hello,

Take a look at Q180366 at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q180366

Hope this helps.

Regards,
Max
==========================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

|Newsgroups: microsoft.public.vb.controls.internet
|Subject: Trap when the WebBrowser control finishes rendering

|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!
|
|
|



Sun, 02 Jan 2005 14:12:02 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Rendering Modified HTML in WebBrowser Control

2. Rendering Modified HTML in WebBrowser Control

3. Rendering Modified HTML in WebBrowser Control

4. HTML to be rendered using the WebBrowser control

5. Suppress or Trap Error Boxes in WebBrowser Control

6. Trap Events in a Frame w/WebBrowser control

7. How to trap CTRL-P in WebBrowser control?

8. Script Error Trapping in Webbrowser Control

9. Using WebBrowser control - can you trap incoming HTML before browser gets it

10. ie6 webbrowser rendering problem

11. Can't tell when WebBrowser is finished printing from VB5

12. WebBrowser: Knowing when finished loading all pages

 

 
Powered by phpBB® Forum Software