Question TableLayoutPanel

Padingt0n

New member
Joined
Feb 24, 2009
Messages
1
Programming Experience
1-3
Ok I have a question :

I have a tableLayoutPanel with a tabcontrol.

I also have a combobox

When i switch the combobox selected index it changes the tableLayoutPanel it creates X numbers of row.

The thing is if at the beginning i create 12 rows it works fine. It creates 12 usercontrols.

Afterwise if i decide to create 24 it works fine also.


But if i come back to 12.

I have some large space at the end .

It keeps the space for 24 even if i only have 12.


Me.TableLayoutPanel1.Controls.Clear()

Me.TableLayoutPanel1.RowCount = NbPrelevements

Where NbPrelevements = the number of rows...

So i'm wondering is there a way to hide the spaces at the end.
 
Back
Top