Quote Originally Posted by [LGS]Static
VB Code:
  1. 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
  2.  
  3. Private Const HWND_TOPMOST = -1
  4. Private Const HWND_NOTOPMOST = -2
  5. Private Const SWP_NOMOVE = 2
  6. Private Const SWP_NOSIZE = 1
  7. Private Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE
  8.  
  9. Private Sub Form_Load()
  10.     SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS
  11.     [B]'To "turn off" always on top use
  12.     'SetWindowPos Me.Hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, FLAGS[/B]
  13. End Sub

did you read this post?