Link to home
Start Free TrialLog in
Avatar of hess
hess

asked on

Makeing a form always on top.

I want to have a form that is always ontop... like icq or winamp. how do i do this
ASKER CERTIFIED SOLUTION
Avatar of MikeP090797
MikeP090797

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hess
hess

ASKER

where do i put this code
Avatar of hess

ASKER

where do i put this code
How about this ???

SetForegroundWindow(Me.hWnd) 'API call...find it in the help file...

Maybe try putting it in a Timer's OnTimer() event...
Hess,

put it in your Form_Load, like so

Private Sub Form_Load()
    'sets form to be always on top
    'SetWindowPos hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE
   
End Sub


hope this helps
Avatar of hess

ASKER

got it thanx