Two transparent labels on top of each other showing only one

C

C

If I have two transparent labels in the same location, only one of
them is being shown. Is there some way to avoid this?

One way around this is to write on the Form itself with g.DrawString
(or something like that) twice, but it would be good to know if the
labels can handle this.

Thanks.
 
A

Armin Zingler

Am 12.08.2010 19:50, schrieb C:
If I have two transparent labels in the same location, only one of
them is being shown. Is there some way to avoid this?

Not really. Have a look here:
http://www.bobpowell.net/transcontrols.htm

Search for "transparent controls" to find more.

One way around this is to write on the Form itself with g.DrawString
(or something like that) twice, but it would be good to know if the
labels can handle this.

Nope, not out of the box.

BTW, the VB6 Label control was not a control. Well, it pretended to
be one but it had no window, therefore the difference to the real
controls/windows in .Net. So, DrawString is the way to go.
This is a Win32 limitation, not a VB.Net limitation.
 

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