G
Guest
I have a situation where I need to display a form in a panel. Everything
works great except if the form is maximized and the panel's size changes. In
this case the maximized form's bounds do not change. I tried updating the
form's Bounds property in the panel's SizeChanged event but this does not
work because the Bounds property seems to be ignored until the form is
restored to the normal state. I also tried using the form's SetBoundsCore
method and setting the form's MaximizedBounds property but these didn't work
either.
Is there any way to change the form's bounds while it is in the maximized
state? I am familiar with MdiClient control and I noticed that the MdiClient
implements the desired behavior but I can not use an MdiClient in my
situation.
Thanks for any help!
Lance
works great except if the form is maximized and the panel's size changes. In
this case the maximized form's bounds do not change. I tried updating the
form's Bounds property in the panel's SizeChanged event but this does not
work because the Bounds property seems to be ignored until the form is
restored to the normal state. I also tried using the form's SetBoundsCore
method and setting the form's MaximizedBounds property but these didn't work
either.
Is there any way to change the form's bounds while it is in the maximized
state? I am familiar with MdiClient control and I noticed that the MdiClient
implements the desired behavior but I can not use an MdiClient in my
situation.
Thanks for any help!
Lance