|
|||||||
|
|
|
|||||
|
|
|||||||
Under Win32 programming, you have to use a new API function "SetForegroundWindow" to implement such purpose as to change a window up to the top of Z-order, shown as below example codes:
'Declare API function in a module
Public Declare Function SetForegroundWindow Lib "user32" _
(ByVal hwnd As Long) As Long
'Put following codes into any form you want it back to the front ground
Dim Result As Long
Me.WindowState = vbNormal
Result = SetForegroundWindow(Me.hwnd)
Me.Show
Copyright (c) 1999 - 2001, robert han, all rigths are reserved.