, , , , :
, FlowLayoutPanel . . FlowDirection TopDown .
AutoSize FlowLayoutPanel true AutoSizeMode GrowAndShrink.
, AutoSize true / , . , , , , . , , .
, , , .
/
Instead of using two buttons, I like to use the checkbox to expand / collapse. All encoding for resizing will be reduced to adding one property binding string checkbox1.Checkedto a Visibilitytext field property :
textbox1.DataBindings.Add ("Visible", checkbox1, "Checked")
source
share