Well I want the pushButton to Change Color when clicked on. So "i" is just a avariable I used to help me assaign a number to a Color, regarding how many times the Buttons is already clicked on, so that I get different Colors when the pushbutton is clicked multiple times. I would like to have the 10x10 field of pushbuttons in which no metter which pushButton gets clicked its Color changes from red to green to blue and then again red green blue and so on. If I use my Code up I would to have 100 variables one for each push button. The way I did it "i" can not apply to all Buttons because then the order is disturbed. But I would like to find a way to have "i" apply to everyone so that I dont have to use a different variable for every pushbutton.
Bookmarks