如何防止WinForms应用程序闪烁

时间:2020-04-01 18:43:42

标签: vb.net winforms windows-10 flicker createparams

我发现以下代码可以消除WinForms应用程序中的闪烁:

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

"minimizing and maximizing the form, all controls are invisible. Removing &H2000000 fix the problem, but the controls start to flicker"this comment上的this question中说出来时,就会出现问题。

有什么更新或方法可以解决吗?

0 个答案:

没有答案