I am relatively new to
VB 2005 and have a form with a large number of buttons on it, 256 to be precise they are laid out in 8 rows of 32 and I need to change the colour of them based on a 32 digit binary number I have stored in a string. I will be getting a different binary string for each row of 32 so I thought a way of doing this would be to have a for next loop that goes around 8 times containing another which goes around 32 times. I was going to use mid on the string to find the value and if it was a 1 make the button green and if it is a 0 make it red I could bump the operation to the next line of buttons by adding 32 for the second 64 for the third and so on.
The problem is I can't work out how to select the button to change. I know if it is on the first time round the 8 and say the third time round the 32 then I need to select Button3 to change but I don't know how to code that bit
Can anybody help???
I haven't got much hair left to pull out!