/// <summary> A CodePane extension method that forces focus onto the CodePane. This patches a bug in VBE.Interop.</summary> public void ForceFocus() { _codePane.ForceFocus(); }
/// <summary> /// /// </summary> /// <param name="codePane"></param> /// <param name="selection"></param> public static void SetSelection(this CodePane codePane, Selection selection) { codePane.SetSelection(selection.StartLine, selection.StartColumn, selection.EndLine, selection.EndColumn); codePane.ForceFocus(); }