VB.net:
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
FROM#:
protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle = cp.ExStyle | 0x2000000; return cp; } }
In VB, add it to the end of the affected class, and I assure you that this will work.
In C # add a property to the top of the class along with your other properties.
Essentially, it expects full rendering of Winform and removes the flickering of the shape drawn on the screen. If you have not tested it, please do not neglect it. I had a huge problem with winform delay, and this fixed it.
Luke hissey
source share