private void graphCanvas_MouseDown(object sender, MouseEventArgs e) { // Get start of rectangle if (e.Button == MouseButtons.Left) { _rectangleDrawing = true; PointF location = e.Location; _drawer.Denormalize(ref location); _rectangle.Location = location; } _rectangle.Size = SizeF.Empty; }