Groupbox and label problem

F

feudalac!

In VB6
Groupbox had .Border property...
Label had .Opaque property...

in VB.NET
I have several groupboxes on my form (because i need a container
control) and i don't want them do have a border...
I have a lots of labels and soem of them are on top of a picture and
must be transparent... When i set backgroundcolor to transparent, the
label still has the default background color...

is there a way to this two things?



Thanks
 
F

FUnky

I have several groupboxes on my form (because i need a container control)
and i don't want them do have a border...

Why use groupbox then? Use panel instead.




I have a lots of labels and soem of them are on top of a picture and must
be transparent... When i set backgroundcolor to transparent, the label
still has the default background color...

How is you picture displayed .. is it in a picturebox ? The label will
always take its default background color as the color of its container. So i
might have some problem doing this. You can set the opacity of your form as
0% if u like. Only the form has an opacity property, as far as i think.
 
F

feudalac!

FUnky said:
Why use groupbox then? Use panel instead.






How is you picture displayed .. is it in a picturebox ? The label will
always take its default background color as the color of its container. So i
might have some problem doing this. You can set the opacity of your form as
0% if u like. Only the form has an opacity property, as far as i think.
Yes, in VB.NET only the form has the opacity property...
I solved the label problem with label1.parent=picturebox
 

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