So, I need a way, when a person clicks on a text field in a grid of 8x8 text fields, the text in the text field on which they clicked changes to something. My grid is set up in a variable named textboxes[,], so if you type textboxes[0,0], you will get the first field in the grid. At the moment, with my very limited knowledge, I have it.
for (int i = 0; i < 8; i++)
{
for (int j = 0; j < 8; j++)
{
textboxes[i, j].Click += new EventHandler(textboxes_Click);
}
}
Then I can process every time one of the boxes is clicked. If you have a better way to do this, I would love to hear that. I just don't know how to access the box that was clicked, mostly text. I hope I explained it quite well. Thanks for the help!
-Lewis