/// <summary> /// Sets focus to the active document. /// </summary> public static void SetActiveDocFocus() { Interaction.SetFocus(Application.DocumentManager.MdiActiveDocument.Window.Handle); }