PDA

Click to See Complete Forum and Search --> : Always on top


cancaries
Dec 27th, 2001, 10:18 AM
Hi,
I want to put my form on top of all windows. I mean always on top like the windows taskbar.

Megatron
Dec 27th, 2001, 10:46 AM
Private Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (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()
SetWindowPos hwnd, -1, 0, 0, 0, 0, 3
End Sub