Setting Background Colour to a Label

K

kronecker

I want to set the custom colour &H0000BDBF& which I got from a colour
picker program. I need to set this as the background colour to a
Label.

I tried Label1.backgroundcolor = etc but it is not expecting an
integer.


K.
 
T

Tom Shelton

I want to set the custom colour &H0000BDBF& which I got from a colour
picker program. I need to set this as the background colour to a
Label.

I tried Label1.backgroundcolor = etc but it is not expecting an
integer.


K.

Label1.BackgroundColor = Color.Red
 
F

Family Tree Mike

You could use Label1.backcolor = Color.FromArgb(&H6700BDBF&). The value you
had would have a fully transparent alpha value, so you would not see the
color.
 

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

Top