private void OwnedForm_Resizing(object sender, ResizeEventArgs e)
 {
     if (m_snapGrid != null)
     {
         m_snapGrid.SnapWhileResizing(e, ref m_rectangleBeforeSizeMove, MaxSnapDistance, InsensitiveBorderEndLength);
     }
 }
        private void MdiChild_Resizing(object sender, ResizeEventArgs e)
        {
            if (m_snapGrid != null)
            {
                // Check if the MDI client rectangle changed during move/resize, because the client area may show or hide scrollbars during sizing/moving of the window.
                CheckUpdateSizeMove();

                m_snapGrid.SnapWhileResizing(e, ref m_rectangleBeforeSizeMove, MaxSnapDistance, InsensitiveBorderEndLength);
            }
        }