H
Hedley Muscroft
Hi Bob (or anyone else who can help!),
I've just written a couple of simple new controls : TransparentLabel and
TransparentLinkLabel which are based on the example on your website :
http://www.bobpowell.net/transcontrols.htm
The onle changes I made were to remove the Timer and I added...
this.DoubleBuffered = false;
....to the constructor (which seemed to be required) and it all works fine,
except that when the form is resized, the label doesn't repaint itself and
hence disappears.
I'm guessing that the timer code would fix this because it invalidates the
control every 500msecs, but is there a better workaround? If a form has a
dozens of TransparentLabels, that means dozens of timers which I'd rather
avoid if possible.
Any suggestions? TIA,
Hedley Muscroft
PS: I'm using VS C# 2005 Beta 2
I've just written a couple of simple new controls : TransparentLabel and
TransparentLinkLabel which are based on the example on your website :
http://www.bobpowell.net/transcontrols.htm
The onle changes I made were to remove the Timer and I added...
this.DoubleBuffered = false;
....to the constructor (which seemed to be required) and it all works fine,
except that when the form is resized, the label doesn't repaint itself and
hence disappears.
I'm guessing that the timer code would fix this because it invalidates the
control every 500msecs, but is there a better workaround? If a form has a
dozens of TransparentLabels, that means dozens of timers which I'd rather
avoid if possible.
Any suggestions? TIA,
Hedley Muscroft
PS: I'm using VS C# 2005 Beta 2