P
Peter Bromley
Hi,
I have an outstanding issue with my control which I would like help with
if anybody can help, thanks.
I need to control the size of my UserControl which is embedded within
Internet Explorer pages. My control is able to determine minimum and
maximum sizes (based on sizes and positions of dynamically determined
child controls).
But, when embedded in an IE web page, my control is sized long before it
is fully constructed.
As far as I can tell the control size is set through the SetExtent
method of the COM IOleObject interface exposed by private .NET forms
classes. But this is called before even the Load event is fired for my
control or any of its child controls. So overloading OnSizeChanged is of
no used to me as it occurs far too early in the lifetime of my control.
I have also attempted to control the size in the Layout event but that
has no effect on the container size within the Web page layout, only the
control size within that container.
What I need to do is resize the control in a way which affects the web
page layout, but after IE appears to have finished laying out the page.
Is there a way I can do this from within my control? I don't want to
force additional JScript on the web clients of my control.
Very much TIA,
Peter Bromley
--
If you wish to reply to me directly, my addres is spam proofed as:
pbromley at adi dot co dot nz
Or if you prefer - (e-mail address removed)
I have an outstanding issue with my control which I would like help with
if anybody can help, thanks.
I need to control the size of my UserControl which is embedded within
Internet Explorer pages. My control is able to determine minimum and
maximum sizes (based on sizes and positions of dynamically determined
child controls).
But, when embedded in an IE web page, my control is sized long before it
is fully constructed.
As far as I can tell the control size is set through the SetExtent
method of the COM IOleObject interface exposed by private .NET forms
classes. But this is called before even the Load event is fired for my
control or any of its child controls. So overloading OnSizeChanged is of
no used to me as it occurs far too early in the lifetime of my control.
I have also attempted to control the size in the Layout event but that
has no effect on the container size within the Web page layout, only the
control size within that container.
What I need to do is resize the control in a way which affects the web
page layout, but after IE appears to have finished laying out the page.
Is there a way I can do this from within my control? I don't want to
force additional JScript on the web clients of my control.
Very much TIA,
Peter Bromley
--
If you wish to reply to me directly, my addres is spam proofed as:
pbromley at adi dot co dot nz
Or if you prefer - (e-mail address removed)