NativeMethods.SetFocus Method
Sets the focus to the specified window.
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Sub SetFocus ( _
hwnd As IntPtr _
)
'Usage
Dim hwnd As IntPtr
NativeMethods.SetFocus(hwnd)
public static void SetFocus(
IntPtr hwnd
)
public:
static void SetFocus(
IntPtr hwnd
)
public static function SetFocus(
hwnd : IntPtr
)
static member SetFocus :
hwnd:IntPtr -> unit
Parameters
- hwnd
Type: System.IntPtr
The specified window
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.