I am just messing around and seeing if i can do some simple stuff in c#. I'm making a program which uses an array of textboxes. Right now i am using the following code:
private TextBox[,] textboxes;
private void moveup()
{
textboxes = new TextBox[,] { { box00, box01 }, { box10, box11 } };
textboxes[currentrow, currentcolumn].BackColor = Color.Black;
}
I'm actually using the text box array in a few methods similar to 'moveup', is there anyway I can define the textboxes that are contained in it just once? Thanks in advance! :)