SetForegroundWindow
Makes an application form the foreground window.
Visual Basic |
---|
Public Function SetForegroundWindow( _
ByVal hWndForm As Integer _
) As Integer
|
- hWndForm
The form to make the foreground window.
Note: This method is intended for use only in 16-bit versions of Microsoft Visual Basic (3.0 and 4.0). In Microsoft Visual Basic 4.0 32-bit, 5.0, 6.0, and .NET, use the Win32 API call SetForegroundWindow instead.
Available: D MD
Groups:
VB:
sis.SetForegroundWindow 1
Makes the window whose handle is 1 the foreground window.
VB Net:
Public
SisHwnd As Integer
Declare
Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
SetForegroundWindow (SisHwnd)