I've a form where I add a panel1 control to add 3D borderstyle
In that panel I add a RectangleShape1 control.
The problem is when resizing the form the RectangleShape flicks a lot. Even if the rectangleshape is not resized when the forms resizes.
I've read some solutions that works for some people. I've applied the solution, but the rectangleshape still flicks.
The people recommend to set some flags to true:
SetStyle(ControlStyles.OptimizedDoubleBuffer, True)
SetStyle(ControlStyles.ResizeRedraw, True)
SetStyle(ControlStyles.UserPaint, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)
SetStyle(ControlStyles.SupportsTransparentBackColor, True)
And set Me.DoubleBuffered = true
I've tried the solutions running the application in vs and running from the *.exe file and it still flicks.
In that panel I add a RectangleShape1 control.
The problem is when resizing the form the RectangleShape flicks a lot. Even if the rectangleshape is not resized when the forms resizes.
I've read some solutions that works for some people. I've applied the solution, but the rectangleshape still flicks.
The people recommend to set some flags to true:
SetStyle(ControlStyles.OptimizedDoubleBuffer, True)
SetStyle(ControlStyles.ResizeRedraw, True)
SetStyle(ControlStyles.UserPaint, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)
SetStyle(ControlStyles.SupportsTransparentBackColor, True)
And set Me.DoubleBuffered = true
I've tried the solutions running the application in vs and running from the *.exe file and it still flicks.