Results 1 to 3 of 3

Thread: Drawing A Shape On a Panel

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Drawing A Shape On a Panel

    How would I draw a shape on a panel? Like an oval? Thanks.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Drawing A Shape On a Panel

    Quote Originally Posted by jordan23
    How would I draw a shape on a panel? Like an oval? Thanks.
    'the simplest possible way...

    Code:
    		private void panel1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
    		{
    			panel1.CreateGraphics().DrawEllipse(new Pen(Color.Red, 2), 10, 10, 70, 50);
    		}
    Last edited by wossname; Jan 19th, 2005 at 10:47 AM.
    I don't live here any more.

  3. #3

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Re: Drawing A Shape On a Panel

    Thanks.

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