Setting Background Colour to a Label

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kronecker@yahoo.co.uk

    #1

    Setting Background Colour to a Label

    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.backgrou ndcolor = etc but it is not expecting an
    integer.


    K.
  • Tom Shelton

    #2
    Re: Setting Background Colour to a Label

    On 2008-04-24, kronecker@yahoo .co.uk <kronecker@yaho o.co.ukwrote:
    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.backgrou ndcolor = etc but it is not expecting an
    integer.
    >
    >
    K.
    Label1.Backgrou ndColor = Color.Red

    --
    Tom Shelton

    Comment

    • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

      #3
      RE: Setting Background Colour to a Label

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

      "kronecker@yaho o.co.uk" wrote:
      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.backgrou ndcolor = etc but it is not expecting an
      integer.
      >
      >
      K.
      >

      Comment

      Working...