Resize WebBrowser Control

Started by George Bleck, August 30, 2013, 01:06:58 AM

Previous topic - Next topic

George Bleck

It appears the WebBrowser control (or associated support code that goes along with it) does not acknowledge ResizeRules.

Reproducible method I tried...

  • Create a blank resizable form (WS_THICKFRAME)
  • Place WebBrowser control on it
  • Configure the WebBrowser control Custom settings (i.e. set a URL or seed with some HTML code)
  • Set the ResizeRules of the WebBrowser control to FL, FT, FR, FB
  • Compile and Run
You can resize the parent form but the WebBrowser control does not change it's size.

Rolf Brandt

How about resizing it manually in the form's resize event?

Rolf
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

hmmm.... I'll have to look at this one. Could be that other controls may not be triggered by the resize engine (I'm think OCX controls maybe, and 3rd party external controls).
Paul Squires
PlanetSquires Software

George Bleck

#3
Adding a MoveWindow for the WebBrowser control to the WM_SIZE of the parent does indeed work.  This was more informational to Tech Support. 

I just wasn't sure if it was something that needed "fixing" or something that just needed better documentation.

@ROLF


How sad is it that people (well at least me) don't read well.  I speed read your posting then wondered why you wrote "Rolling on floor laughing" after it.  I need to slow down a bit :-)  Thanks for the info though, greatly appreciated.

Rolf Brandt

I guess I need to be carefull signing with my name!

Rolf (not rofl)
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

J P Eskdale

Was there any resolution to this?
or do I have to do it manually?
Thanks

Jon

Paul Squires

You will have to do it at run time. The bug is still listed in my bugtracker.
Paul Squires
PlanetSquires Software