I draw your attention to this screen record video. It says all. Only in maximizing the form not only it takes too long to perform but it almost crashes.
In continuation of the words of friends here, Crowded WinForm environments will cause graphical flickering, some sort of raster-ing/rendering refresh which looks like that video. How can we overcome this matter?
What I've tried:
Also attaching these on form_load (which are the same I suppose):Code:Protected Overrides ReadOnly Property CreateParams As CreateParams Get CreateParams = MyBase.CreateParams CreateParams.ExStyle = CreateParams.ExStyle Or &H2000000 Return CreateParams End Get End Property
Code:Me.SetStyle(ControlStyles.OptimizedDoubleBuffer, True)Also DoubleBuffer = True on UserControl itself.Code:MyBase.DoubleBuffered = True
It should be noted that all auto-adding controls are dock=fill (In case of consuming more time to perform) and the UserControl filled with some random controls with also dock=fill.
Is it even a double buffer problem? To be or not to be, "True"?
Extra question: The app startup time is also slow. It is a light project why is it like this? Core-i7 8GB RAM and Windows 11, Could it be VS problem?




Reply With Quote
