How to prevent WinForms app from flickering

323 views Asked by At

I found the following code which cancels the flickering in a WinForms application:

Protected Overrides ReadOnly Property CreateParams() As CreateParams
    Get
        Dim cp As CreateParams = MyBase.CreateParams
        cp.ExStyle = cp.ExStyle Or &H2000000
        Return cp
    End Get
End Property 'CreateParams

The issue comes when "minimizing and maximizing the form, all controls are invisible. Removing &H2000000 fix the problem, but the controls start to flicker" like it says in this comment on this question.

There's any update or way to solve this?

0

There are 0 answers