Results 1 to 2 of 2

Thread: What does this mean??..

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    29

    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
    Arvinder Gill

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    It overrides the OnPain method of the form to shape it as a circle . Just copy and paste the code , run , see the result .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width