If I have 9 buttons called button1, button2 etc up to button 9
how can I change their properties using a loop? Or can I group them together?
I have something like this
for (int i = 1; i <= 9; i++)
{
button.Enabled = true;
button(i).Text = "BLAH!";
}
where If i could (i) would be the button number at the end
I dont think I am using the word "object" in the right way, I mean by it, a name of a button made in Visual C#
Can I parse a string into an object?
Then I could make an array and cycle through that...
this may seem obvious to you but I am learning c# atm
Thanks for the help