Visual Basic (Declaration) | |
---|---|
<DllImportAttribute("user32.dll")> <PreserveSigAttribute()> Public Shared Function SetForegroundWindow( _ ByVal hWnd As HandleRef _ ) As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim hWnd As HandleRef Dim value As Boolean value = K2InputWindow.SetForegroundWindow(hWnd) |
C# | |
---|---|
[DllImport("user32.dll")] [PreserveSig()] public static bool SetForegroundWindow( HandleRef hWnd ) |
C++/CLI | |
---|---|
[DllImport("user32.dll")] [PreserveSig()] public: static bool SetForegroundWindow( HandleRef hWnd ) |
Parameters
- hWnd
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2