次の方法で共有


IVsUIShell.SetForegroundWindow Method

Activates the environment application window by calling the SetForegroundWindow Win32 API.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function SetForegroundWindow As Integer
'使用
Dim instance As IVsUIShell
Dim returnValue As Integer

returnValue = instance.SetForegroundWindow()
int SetForegroundWindow()
int SetForegroundWindow()
abstract SetForegroundWindow : unit -> int 
function SetForegroundWindow() : int

Return Value

Type: System.Int32

Remarks

This method puts the thread that created the specified window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user.

.NET Framework Security

See Also

Reference

IVsUIShell Interface

IVsUIShell Members

Microsoft.VisualStudio.Shell.Interop Namespace