Example #1
0
        /// <summary>
        /// // Reversible drawing method
        /// / Calling this method the first time draws the rubberband.
        /// Calling it a second time with the same rect erases the rubberband
        ///  Reversible drawing method
        /// </summary>
        protected void Draw()
        {
            Rectangle rect2 = new Rectangle(rect.Left + parent.AutoScrollPosition.X, rect.Top + parent.AutoScrollPosition.Y, rect.Width, rect.Height);
            Rectangle r     = parent.RectangleToScreen(rect2);

            ControlPaint.DrawReversibleFrame(r, Color.White, FrameStyle.Dashed);
        }