Hello everyone.
Im making a application in which i need to make a matrix of 8x8x8 buttons.
Each layer contains 8x8 buttons (so 8 layers in total).
Each button can be clicked and when clicked it change the color to red, the second click changes the color of the button to green, and the third click makes it blanc again.
I tried making different arrays for each row, but this didnt work out.
Can anyone help me creating this application?
paul.meeuwissen.106
0
Newbie Poster
Recommended Answers
Jump to PostCreate all your buttons, you don't need them in an array (unless there is some specific reason you do). Create one handler event and use the sender parameter to get the button that was clicked. Set all the clicked events to this handler. Get the current color and figure out …
All 3 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
tinstaafl
1,176
Posting Maven
JOSheaIV
119
C# Addict
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.