'this goes in bas file under declarations
Declare Sub SetWindowPos Lib "User" (ByVal hWnd As Integer, ByVal
hWndInsertAfter As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal
cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer)
Global Const CONHWNDTOPMOST = -1
Global Const CONHWNDNOTOPMOST = -2
Global Const CONSWPNOACTIVATE = &H10
Global Const CONSWPSHOWWINDOW = &H40
'now i make it to where they can choose so have something to 'where they
can choose and make a form or something show and 'use this....
Sub Form_Load ()
If frmONTOP.Visible = True Then
SetWindowPos hWnd, CONHWNDTOPMOST, 0, 0, 0, 0, CONSWPNOACTIVATE Or
CONSWPSHOWWINDOW
Else
SetWindowPos hWnd, CONHWNDNOTOPMOST, 0, 0, 0, 0, CONSWPNOACTIVATE Or
CONSWPSHOWWINDOW
End If
End Sub
-=?(D sk=-