public Rectangle DrawSelection(PictureBox pictureBox) { Size rectangleSize = new Size(endSelection.X - startSelection.X, endSelection.Y - startSelection.Y); Rectangle rect = new Rectangle(startSelection, rectangleSize); ControlPaint.DrawReversibleFrame( pictureBox.RectangleToScreen(rect), Color.Red, FrameStyle.Thick); return rect; }