How would I go about creating a window or form that remains always on top?
Take a look at SetWindowPos, the second parameter should be HWND_TOPMOST.
David beat me to it as I was testing code to post! First time I've coded in WinFBE in a while and I lost out on providing the answer. LOL
''
''
Function frmMain_Load( ByRef sender As wfxForm, ByRef e As EventArgs ) As LRESULT
SetWindowPos( sender.hWindow, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE )
Function = 0
End Function
Well, since I didn't provide a tested example, your post is more useful. :)
Excellent, this does the trick. Thanks again!
Out of pure curiosity, the TOPMOST setting in a SetwindowsPOS, will it keep your form on top no matter what?
I was wondering what happens if you call other programs or forms with that setting, or will it keep the last called one on top?
Just curious if you have more than one of these what happens?
Regards, Peter
Calling another program where it is set to always be on top, does place it on top.