Frank
Sun Nov 13 12:05:25 CST 2005
Transparent controls will never work well in windows forms. So you must
either perform the paint yourself, or use some tool to do it for you. It is
not necessarily tons of work.
I was speaking of a single Control-derived class, docked to cover the Form.
Regards,
Frank Hileman
check out VG.net:
http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
"Bob Dankert" <bobatnvsn-itdotcom@nospam.nospam> wrote in message
news:ulQjv$x5FHA.2576@TK2MSFTNGP09.phx.gbl...
> You suggest I draw the label text myself on hundreds of labels, on
> hundreds of form's? This seems a little crazy and would take TONS of
> work. The labels' text frequently update on the form's and the labels are
> all over the form's - not an easy feat. (I assume you mean in the onpaint
> event for the form - if not, please explain more).
>
> Thanks,
>
> Bob
>
> "Frank Hileman" <frankhil@no.spamming.prodigesoftware.com> wrote in
> message news:eABylDw5FHA.444@TK2MSFTNGP11.phx.gbl...
>> The solution is to create a single custom Control-derived class where you
>> draw the labels yourself in OnPaint. In this way all labels are updated
>> to the screen with a single back-to-front buffer transfer. Or you could
>> use a vector graphics library to get the same effect.
>>
>> Regards,
>> Frank Hileman
>>
>> check out VG.net:
http://www.vgdotnet.com
>> Animated vector graphics system
>> Integrated Visual Studio .NET graphics editor
>>
>> "Bob Dankert" <bobatnvsn-itdotcom@nospam.nospam> wrote in message
>> news:%23ozjLIv5FHA.3500@TK2MSFTNGP11.phx.gbl...
>>>I am having troubles with forms that have a large number of labels with
>>>transparent backgrounds causing a good deal of flicker while originally
>>>drawing the form. I have created a new label class which inherits from
>>>Label and has UserPaint and DoubleBuffer set in the control styles, and
>>>this makes no difference. In 2.0, I set double buffering on the form and
>>>this also made no difference.
>>>
>>> Anyone have any suggestions on how to deal with this? A form with 100
>>> transparent background labels should not flicker the way it does on my
>>> PC (Athlon 64 3500, 512MB) - you can see each label being drawn
>>> individually. I have tried my test case on numerous computers and the
>>> same thing happens on each.
>>>
>>> Thanks,
>>>
>>> Bob Dankert
>>>
>>
>>
>
>