<p>I'm trying to create some skinned forms (just the border and caption) with a different approach than you usually see but I'm having some issues with form flickering while I resize the form.</p>

<p>I don't know how else to explain the problem, so here's a video I created to demonstrate the problem:
<a href="http://www.screencast.com/t/AIqK9Szmz" rel="nofollow noreferrer">http://www.screencast.com/t/AIqK9Szmz</a></p>

<p>Also, here's a VS2008 test solution with the whole code that repaints the form borders:<a href="http://stuff.nazgulled.net/misc/TestForm.zip" rel="nofollow noreferrer">http://stuff.nazgulled.net/misc/TestForm.zip</a></p>

<p>Hope someone can help me get rid of the flicker...</p>

That's what I use in my base form's constructor:
```
```
this.SetStyle( ControlStyles.AllPaintingInWmPaint, true );
this.SetStyle( ControlStyles.UserPaint, true );
this.SetStyle( ControlStyles.OptimizedDoubleBuffer, true );
this.SetStyle( ControlStyles.ResizeRedraw, true );
```
```
I think the key is the use of "AllPaintingInWmPaint".