Specific Back Color

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

How do I set the back colour of a label using code? I can do regular
colours with something like: "label1.backcolor = drawing.color.blue".
But the color I want to set at run time using code is a custom color
"128, 255, 128". Is this possible?
 
Steve said:
How do I set the back colour of a label using code? I can do regular
colours with something like: "label1.backcolor = drawing.color.blue".
But the color I want to set at run time using code is a custom color
"128, 255, 128".

Take a look at 'Color.FromArgb'.
 
Steve,

Me.Label1.BackColor = Color.FromArgb(128, 255, 128)

I hope this helps,

Cor
 

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

Back
Top