Results 1 to 3 of 3

Thread: Drawing A Shape On a Panel

Threaded View

  1. #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.

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