0

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 ?

spaghettifunk
  • 1,936
  • 4
  • 24
  • 46

2 Answers2

1

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

Anuraj
  • 18,859
  • 7
  • 53
  • 79
0

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.

Robert
  • 1,696
  • 3
  • 36
  • 70