How to: Create a Shaped Windows Form
.NET Framework 3.0
This example gives a form an elliptical shape that resizes with the form.
Compiling the Code
This example requires:
References to theand namespaces.
This example overrides themethod to change the shape of the form. To use this code, copy the method declaration as well as the drawing code inside the method.