StrataFrame Forum

strataCollapsibleContainer

http://forum.strataframe.net/Topic24846.aspx

By Ross L. Rooker, Sr. - 10/5/2009

I have a Windows Form with a strataCollapsibleContainer and below it there is a themedGroupBox. When I collapse the strataCollapsibleContainer, how do I eliminate the blank space between the collapsed container and the themedGroupBox. My question here is how do I set the starting position of the themedGroupBox when the strataCollapsibleContainer is collapsed and uncollapsed?

I know I need to do something in the Collapsed and the Opened events to affect the location of the themedGroupBox but not sure what.

By the way, this control seems to work great. Just an answer to the above will put the finishing touch on it.

By Greg McGuffey - 10/5/2009

The easy way is to put both of them in a FlowLayoutPanel.



The other way involves math. BigGrin You'd have to get the bottom of the collapsed panel, then based on the desired margin, set the top of the control below it.
By Trent L. Taylor - 10/5/2009

Greg is correct that if you use a FlowLayoutPanel it will take care of this for you and you will not have to manually reposition the controls.
By Ross L. Rooker, Sr. - 10/5/2009

Where is the FlowLayoutPanel? I don't see it in the StrataFrame Toolbox in VS2008.
By Edhy Rijo - 10/5/2009

Hi Ross,

It is part of VS All Controls.

By Ross L. Rooker, Sr. - 10/5/2009

I found it. I should have looked in the regular All Windows Forms rather than StrataFrame.