It overrides the OnPain method of the form to shape it as a circle . Just copy and paste the code , run , see the result .