我发现以下代码可以取消 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"
就像在这个问题的评论中所说的那样,问题就来了。
有什么更新或方法可以解决这个问题吗?