T
Timothy V
Hi all,
I don't usually post possible bugs because I would assume that there are
none. However, some of the properties are not acting acting as they should.
Here is what I have found. When using the AutoSize property set to "true",
and the GrowStyle property set to "AddColumns" or "AddRows" (default). You
add a control (such as a button) with:
this.tableLayoutPanel1.Controls.Add(new Button());
What this does is add the button to newly made cell (a cell in a new row if
"GrowStyle=AddRows" OR in a new column if "GrowStyle=AddColumns").
Lets add about 5 of these buttons. When we call:
this.tableLayoutPanel1.ColumnStyles.Count;
we should get an int that has 5 in it, right? Wrong. It is 0 (zero).
Am I using this wrong? Because strange enough, the controls are showing up
when I run the application.
I would be very interested in some comments on this.
Thanks all,
Tim.
I don't usually post possible bugs because I would assume that there are
none. However, some of the properties are not acting acting as they should.
Here is what I have found. When using the AutoSize property set to "true",
and the GrowStyle property set to "AddColumns" or "AddRows" (default). You
add a control (such as a button) with:
this.tableLayoutPanel1.Controls.Add(new Button());
What this does is add the button to newly made cell (a cell in a new row if
"GrowStyle=AddRows" OR in a new column if "GrowStyle=AddColumns").
Lets add about 5 of these buttons. When we call:
this.tableLayoutPanel1.ColumnStyles.Count;
we should get an int that has 5 in it, right? Wrong. It is 0 (zero).
Am I using this wrong? Because strange enough, the controls are showing up
when I run the application.
I would be very interested in some comments on this.
Thanks all,
Tim.