PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: George Bleck on August 30, 2013, 01:06:58 AM

Title: Resize WebBrowser Control
Post by: George Bleck on August 30, 2013, 01:06:58 AM
It appears the WebBrowser control (or associated support code that goes along with it) does not acknowledge ResizeRules.

Reproducible method I tried...
You can resize the parent form but the WebBrowser control does not change it's size.
Title: Re: Resize WebBrowser Control
Post by: Rolf Brandt on August 30, 2013, 04:00:01 AM
How about resizing it manually in the form's resize event?

Rolf
Title: Re: Resize WebBrowser Control
Post by: Paul Squires on August 30, 2013, 08:44:47 AM
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).
Title: Re: Resize WebBrowser Control
Post by: George Bleck on August 30, 2013, 05:21:33 PM
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.
Title: Re: Resize WebBrowser Control
Post by: Rolf Brandt on August 30, 2013, 06:01:28 PM
I guess I need to be carefull signing with my name!

Rolf (not rofl)
Title: Re: Resize WebBrowser Control
Post by: J P Eskdale on November 01, 2013, 01:20:18 PM
Was there any resolution to this?
or do I have to do it manually?
Thanks

Jon
Title: Re: Resize WebBrowser Control
Post by: Paul Squires on November 01, 2013, 03:35:46 PM
You will have to do it at run time. The bug is still listed in my bugtracker.