MouseIsDown = Rectangle MouseRect = = p.X -= p.Y - = = = .RectangleToScreen( Rectangle(, = Rectangle(StartPoint.X, StartPoint.Y, , button1_Click( barkPictureBox_MouseUp(= == (MouseRect.X == || MouseRect.Y == || MouseRect.Width == || MouseRect.Height == ) = sx = _x < e.X ? sy = _y < e.Y ? w = Math.Abs(_x - h = Math.Abs(_y -= Rectangle(, barkPictureBox_MouseMove( (MouseIsDown) ResizeToRectangle( Point(e.X + barkPictureBox.Location.X, e.Y + barkPictureBox_MouseDown(=== Point(e.X + barkPictureBox.Location.X, e.Y + Form1_Load(+= += +=