Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

IVsTextView.SendExplicitFocus Method

Sends explicit focus to the window.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

int SendExplicitFocus ()
int SendExplicitFocus ()
function SendExplicitFocus () : int

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From textmgr.idl:

HRESULT IVsTextView::SendExplicitFocus();

This method sends the GimmeFocus message directly so it is handled immediately.

Community Additions

ADD
Show:
© 2015 Microsoft