'E-Mail: KPDTeam@Allapi.net
'Set the window position to topmost
SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
End Sub
Easier, yes. But doesn't solve the problem as stated in the original question. It merely keeps the window on top of other windows belonging to the your application. Windows belonging to other applications will quite happily obscure it.
Well, it might do just what he requires. In my experience, when people ask that question they generally mean within their application. And I'm not sure he meant it that literally anyway.
I have a little different situation. I have a program that uses MDI. Neither of these options work. Is there any way to keep a form on top in an MDI environment?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.