I can do something as simple as:
- Create a new .NET form application
- Put a single RectangleShape onto the form
add the following into the InitializeComponent method in the designer code
Me.SetStyle(ControlStyles.AllPaintingInWmPaint Or _ ControlStyles.UserPaint Or _ ControlStyles.DoubleBuffer, True) Me.UpdateStyles()
- Run the program
- Resize the form
- Watch angrily as the rectangle flickers
Is it possible to get rid of this? Or is the ShapeContainer internally flawed and I need to find a different solution?