I am creating a grid of buttons using the following code:
Button[][] buttons;
In the method:
for (int r = 0; r < row; r++)
{
for ( int c = 0; c < col; c++)
{
buttons[r][c] = new Button();
}
}
How can I clear and reset buttons[][]
if row
or col
changes, is there away to do it?