PDA

Click to See Complete Forum and Search --> : Drawing A Shape On a Panel


jordan23
Jan 19th, 2005, 07:31 AM
How would I draw a shape on a panel? Like an oval? Thanks.

wossname
Jan 19th, 2005, 09:42 AM
How would I draw a shape on a panel? Like an oval? Thanks.

'the simplest possible way...

private void panel1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
panel1.CreateGraphics().DrawEllipse(new Pen(Color.Red, 2), 10, 10, 70, 50);
}

jordan23
Jan 19th, 2005, 09:54 AM
Thanks.