Search this forum for "Always On Top" and you should find sufficient answers, such as
[tt]
Option Explicit
Private Const SWP_NOMOVE = 2
Private Const SWP_NOSIZE = 1
Private Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE
Private Const HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2
Private Declare Function SetWindowPos Lib "user32" _
(ByVal hwnd As Long, _
ByVal hWndInsertAfter As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal cx As Long, _
ByVal cy As Long, _
ByVal wFlags As Long) As Long
Private Sub Form_Load()
'note the use of me.hwnd to ensure that the
'call is attacking the right window!
Call SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
End Sub
[/tt]
POSTED BY
JEFFTULIN IN thread222-470179
Hope this helps.
[tt]"Very funny, Scotty... Now Beam down my clothes."[/tt]