design - C# TableLayoutPanel fill -
in tablelayoutpanel, default, last element in row or column takes remaining space. how can achieve layout penultimate or other element takes space possible, , among others, last element takes space necessary?
it depends on how other rows set. assuming other rows auto-sized or of fixed size, setting penultimate row's size 100% want. designers generated code looks this:
this.tablelayoutpanel1.rowstyles.add(new system.windows.forms.rowstyle()); this.tablelayoutpanel1.rowstyles.add(new system.windows.forms.rowstyle(system.windows.forms.sizetype.percent, 100f)); this.tablelayoutpanel1.rowstyles.add(new system.windows.forms.rowstyle());
Comments
Post a Comment