/// <summary> /// Docks the scanner to another window (the parent parameter) /// </summary> /// <param name="parent">window to dock to</param> /// <param name="position">relative position of docking</param> public void DockScanner(IntPtr parent, Windows.WindowPosition position) { _dock = true; AutoPosition = false; _dockScanner = new DockScanner(parent, _form, position); if (Windows.GetVisible(_form)) { _dockScanner.Dock(); } }