Re: Snappy Rendering of Controls
From: Phil Jones (phil_newsgroup_at_hotmail.com)
Date: 07/14/04
- Next message: Jeremy Williams: "Re: Problems with inheritance in vb.net"
- Previous message: Ying-Shen Yu[MSFT]: "Re: XP Themes and IE"
- In reply to: Ying-Shen Yu[MSFT]: "Re: Snappy Rendering of Controls"
- Next in thread: Ying-Shen Yu[MSFT]: "Re: Snappy Rendering of Controls"
- Reply: Ying-Shen Yu[MSFT]: "Re: Snappy Rendering of Controls"
- Messages sorted by: [ date ] [ thread ]
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)
- Next message: Jeremy Williams: "Re: Problems with inheritance in vb.net"
- Previous message: Ying-Shen Yu[MSFT]: "Re: XP Themes and IE"
- In reply to: Ying-Shen Yu[MSFT]: "Re: Snappy Rendering of Controls"
- Next in thread: Ying-Shen Yu[MSFT]: "Re: Snappy Rendering of Controls"
- Reply: Ying-Shen Yu[MSFT]: "Re: Snappy Rendering of Controls"
- Messages sorted by: [ date ] [ thread ]