for (int i = 0; i < buttons.Length; i++)
{
buttons[i] = new Button();
buttons[i].Name = "Button" + i.ToString();
buttons[i].Text = i.ToString();
table1.Controls.Add(buttons[i], day, row);
++day;
if (day == 6) {
day = 0;
}
if ((day) % 6 == 0) {
row++;
}
}
the last cell is empty it prints like this
like everything under Sat is emptyutput
i wish i could show u the p
Sun Mon Tue Wed Thur Fri Sat
1 ....2
3...4....5...6....7....8
9..
why is that ???