我发现以下代码可以消除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中说出来时,就会出现问题。
有什么更新或方法可以解决吗?