My tablelayout panel has one column and three rows. (one docked to Fill panel in each cell.)
Now I would like to be able to hide/show the rows . I want only one row to be visible at any time ( based on a user selection of some radio buttons) and I want to to get resized so it fills all the area of the TableLayoutPanel.
How can I do that? Any thoughts?
So why did you use a
TableLayoutPanel?Just put three
Panels on your form, fill in everyone the content of each row and set theDockproperty of all three panels toFill. Set two panelsVisible = falseand one totrue.If you like to see another panel, just make it visible and hide the other two (based on your radio button settings).