It is controlled by creating a custom control derived from FlowLayoutPanel and setting its styles as shown below:
Public class CustomFlowLayoutPanel Inherits FlowLayoutPanel
Public Sub New()
MyBase.New()
SetStyle(ControlStyles.UserPaint, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)
SetStyle(ControlStyles.DoubleBuffer, True)
End Sub
Final class
source
share