i need a little help with the function, i created 9 buttons in VB6 at runtime. I set them to swap colors when each time the button is clicked. However, i want all the buttons to stop swaping colors when all 9 buttons are in the same color. so i should use enable/disable functions , right? but i don't have a clue of how to use them...some one please give me some help !!! Thank you~

you just use

(buttonname).enabled = false

thanks jbennet for your fast reply

yeah enabled=false should make them greyed out

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.