Getting BackColor

T

Tina

I'm displaying radio buttons with specific backcolors to allow the user to
select one of the colors. I want to get this color and somehow put it into
a style sheet from code so that I can produce custom appearance.

However, if I say...

dim myColor as system.drawing.color
myColor = RadioButton1.backcolor

I just get the color object in myColor where I can retrieve the R,G, & B
values but I can't see how I can get something like "Red" or #F003830 that I
could put into a style sheet. How can this be done?
Thanks,
T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,108
Latest member
AlbertEste
Top