-
What does this mean??..
Code:
protected override void OnPaint( System.Windows.Forms.PaintEventArgs e )
{
System.Drawing.Drawing2D.GraphicsPath shape = new System.Drawing.Drawing2D.GraphicsPath();
shape.AddEllipse(0, 0, this.Width, this.Height);
this.Region = new System.Drawing.Region(shape);
}
i got this code snipet from the MSDN Library for .NET 2003 Doc.
what does it mean...and if i would like to use it where do i paste this code...will it fit in without interfering my original code..or do i have to do some seting up first..
thx in advance
-
It overrides the OnPain method of the form to shape it as a circle . Just copy and paste the code , run , see the result .