protected override void OnMouseMove(MouseEventArgs e) { var loc = e.GetPosition(this); // See if dragging should start/continue if (!m_dragging && m_mouse_down_at != null && Point.Subtract(loc, m_mouse_down_at.Value).Length > 5) { // Begin dragging the content associated with the tab m_dragging = true; if (DockControl != null) { DockContainer.DragBegin(DockControl, PointToScreen(loc)); } return; } base.OnMouseMove(e); }