Winform reduce/remove visual artifacts when bring forward layered objects

84 Views Asked by At

I am trying to layer objects using winform with each usercontrol having ~50 items(buttons/textbox/labels) on them.

I have tried to enable doublebuffering as recommended and the use of

this.SuspendLayout();
\\... Code ....
this.ResumeLayout();

But there are still a lot of visual artifacts when rendering the items, when the objects are being brought forward.

Identified Potential Issue 1 [I have too much code in the GUI Thread]:

I do have a lot of timers running and I am not sure how to check. However, all the timers are implemented using System.Timer.Timer and intitialised using a ISynchroizeInvoke object. Not sure how I can do a better job with this.

0

There are 0 best solutions below