Setting Background Colour to a Label

  • Thread starter Thread starter kronecker
  • Start date Start date
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.
 
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
 
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.
 
Back
Top