Two transparent labels on top of each other showing only one

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