Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying backcolor for labels in GroupBox

Status
Not open for further replies.

mogura

Programmer
Sep 6, 2003
22
GB
Hi

I have six labels in a group box, each of which displays a random number between 1 and 49 when I click the generate numbers button. If the number is between 1 and 9, I want the backcolor for the label to be white, 10-19 cyan, 20-29 - red, 30-39 - green & 40-49 - yellow. Can anyone help?



Thanks.




 
this sounds like a school assignement wich are not allowed on this site. Is it?

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
I see.

There is such a thing as cringe-worthy lyrics.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top