Hi, I want to put my form on top of all windows. I mean always on top like the windows taskbar.
Last edited by cancaries; Dec 27th, 2001 at 11:22 AM.
Pranav
VB Code: 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
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
Forum Rules