private void pbx2_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
Graphics g = ((PictureBox) sender).CreateGraphics(); // Create pen.
Pen blackPen= new Pen(Color.Red, 3);
// Create coordinates of rectangle to bound ellipse. float width = 50.0F;
float height = 50.0F;
float x = e.X - width /2;
float y = e.Y - height /2;
// Create start and sweep angles on ellipse.
float startAngle =  45.0F;
float sweepAngle = 360.0F;
// Draw arc to screen.
g.DrawArc(blackPen, x, y, width, height, startAngle, sweepAngle); g.Dispose();
}