Label Background

  • Thread starter Thread starter Brian S.
  • Start date Start date
B

Brian S.

Hi, Is there a way to make the lable background transparent? I though I was
about to do this in Access 2.0... but its been a few years...
Brian
 
Ok, I can get this to work with a group object.. but not a picture box...
anyone know why?
 
Hi Brian,

In the properties picker, select Web , then select Transparent. Or in code,
Label1.BackColor = Color.Transparent
 
Bill I can get this working i with a groupbox, but for some reason i can not
get it to work with a picture box.... where is the code I was using
this works....
me.label1..Parent = Me.GroupBox1

me.label1.BackColor = Color.Transparent

This does not work...

me.label1..Parent = Me.picturebox1

me.label1.BackColor = Color.Transparent
 
Hi Brian,

Ah ... PictureBox in dotnet is not a container. I think you are thinking
like VB6. In dotnet use a Panel for a container control.
 
Brian,

The background from the Picturebox is shadowed. You see the background in
your attributes because it is inherited from controls, but you cannot use
it. (I use the picturebox often as sample when somebody ask if you can hide
attributes from the attribute box which are inheritted, you cannot)

Cor
 
Back
Top