The new cols width changed when replaced tablelayoutpanel c#
I use this code but don't work
for(int i=0;i;i++){
control c1=tbl.getcontrolfromposition(1,i);
control c2=tbl.getcontrolfromposition(2,i);
tablelayoutpanelcellposition cel1=tbl.getcellposition(c1);
tablelayoutpanelcellposition cel2=tbl.getcellposition(c2);
tbl.setcellposition(c1,cel2);
tbl.setcellposition(c2,cel1);
}
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 26, 2020, 7:23 PM EDT