Hello
I want to have a number of controls all docked left next to each other. When
I try the code below, the items are reversed with the last button nearest
the left instead of the first.
How can I fix this leaving the for loop the way it is?
Here is my code:
for (int i = 0; i < 10; i++)
{
Button btn = new Button();
btn.Text = "whatever" + i.ToString();
btn.Dock = DockStyle.Left;
this.Controls.Add(btn);
}
Thanks