I use the API : SetWindowPos to make a form always on top
as follows :
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
Private Sub Form_Load()
SetWindowPos Form1.hwnd, -1, 0, 0, 0, 0, 1
However, when I switch the screen to another task ( e.g. from my program to MS Word ), the on top window still on the top which is I don't want to !
Can I have a way to make a form on top but it will disappear when switching task ?