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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -