private void Control_Paint(object sender, PaintEventArgs e)
{
// Create solid brush.
SolidBrush redBrush = new SolidBrush(Color.Red);
// Create array of points for curve.
Point point1 = new Point(100, 2);
Point point2 = new Point(2, 100);
Point point3 = new Point(35, 35);
Point[] points = {point1, point3,point2};
GraphicsPath gp = new GraphicsPath();
gp.AddLine(new Point(100, 2), new Point(2, 2));
gp.AddLine(new Point(2, 2), new Point(2, 100));
gp.AddCurve(points,0.8F);
e.Graphics.FillPath(redBrush, gp);
}