Re: Snappy Rendering of Controls

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Phil Jones (phil_newsgroup_at_hotmail.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 15:06:38 +1200

I've just gone through and applied the suggested code (see below) to every
single control involved in the app - and the problem has disappeared
(without implementing your suggestion of inheriting from [PictureBox]).

So YEA HA!!!!!

But - I have a question. I don't really understand what setting these flags
do. Is this going to impact upon performance (or generally be bad) in other
ways if I do set these flags on all controls. Should I be a little
judicios?

Thanks everyone.

---
Phil
(Auckland | Aotearoa)
====
Code to reduce flicker:
        Me.SetStyle(ControlStyles.UserPaint, True)
        Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True)
        Me.SetStyle(ControlStyles.DoubleBuffer, True)
        Me.SetStyle(ControlStyles.ResizeRedraw, True)