Reputation: 31
I have an Dev Express Windows Form Application and it has a massive amount of flicker, particularly on startup.
I applied this fix to it.
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // WS_EX_COMPOSITED
return cp;
}
}
This code fix the flickering problem but it used 30-50 CPU Usages.
How to Fix this problem ?
Upvotes: 0
Views: 469
Reputation: 1726
It also depends on what type of controls are on the form. DevExpress has many controls that have a .SuspendLayout()
and .ResumeLayout()
which prevent flickering and hang-ups while the specific control is being loaded.
Upvotes: 0
Reputation: 19608
Can you try setting DoubleBuffered = true for the Form? I am not sure it will work with DevExpress or not. You can find an MSDN topic for the same - How to: Reduce Graphics Flicker with Double Buffering for Forms and Controls
Upvotes: 1