TableLayout Panel – Problems and Solutions
April 25, 2008 Leave a comment
Here I am posting some I had faced along with the solutions .
1) Creating multiple TableLayoutPanel objects
foreach(TableLayoutPanelobj in TableLayoutPanelList)
obj.SuspendLayout() ;
// code for your drawing goes here
foreach(TableLayoutPanelobj in TableLayoutPanelList)
obj.ResumeLayout() ;
ResumeLayout has a default parameter set to true, hence it also calls PerformLayout.
2) The above solution shall still have some flickers , here is the solution to remove that
Create a class which inherits from TableLayoutPanel, like the one below .


