Re: Flicker, even with BufferedGraphicsContext

Tech-Archive recommends: Speed Up your PC by fixing your registry



Does this mean that we need to inherit all the controls on a form to enable double buffering?

I ask as I have a splitcontainer which holds 2 usercontrols. Each usercontrol has many panels with various controls on them. The panels are positioned at runtime and change positions based on a a user selected type. When a new type is selected you can watch the usercontrol being repainted. I've so far tried suspend/resume layout. Inheriting the panels and setting doublebuffered to true.

The user control however still has an ugly slow repaint. We're quite a way down the development path so it's too late to attempt all this in xaml.

Any ideas on how to ensure double buffering is working correctly?

"Nik Coughlin" <nrkn.com@xxxxxxxxx> wrote in message news:etpimb$o1h$1@xxxxxxxxxxx
Bob Powell [MVP] wrote:
Objects that support double buffering only do so for their own drawing
surface.

Child controls have their own windows and so would need their own
double buffering turned on in order to eliminate flicker from their
surfaces.
Double buffering the form will not affect any child controls or their
own contained controls. Basically, for forms, user controls and
container controls of all types double buffering us useless.

Thanks Bob. I just (foolishly) assumed that because the doublebuffered property of child controls was protected that it must be inherited from the form.


.



Relevant Pages

  • Re: Flicker, even with BufferedGraphicsContext
    ... Child controls have their own windows and so would need their own double buffering turned on in order to eliminate flicker from their surfaces. ... I'm drawing to a panel via its ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Double buffering a groupbox
    ... Double buffering applies only to the surface of the control itself. ... These child controls all have their own windows and handle their drawing ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Bad Flicker, TransparencyKey and ControlPaint.DrawReversibleFrame
    ... You can enable default double buffering in your forms and authored controls ... and provide flicker-free graphics rendering. ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Slow Painting
    ... Double buffering is probably slowing things down. ... than to make the parent draw more slowly. ... Double buffering all the controls ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: What ONE feature would you want in C# and VS?
    ... talking my specific Web Service schema to the server, ... from the standard WinForms controls. ... would inherit from that as well as the .NET supplied standard Windows ... So there you go, a tasmanian wolf ...
    (microsoft.public.dotnet.languages.csharp)