*/
Example of forcing a Window to always remain on top
Submitted By:
WEBMASTER
Rating:





(
Rate It)
NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our
submissions area.
Screenshot
Details
Number of downloads:
8686
Comments (2)
Could be better




Posted by: TheChameleon on Wednesday, July 17, 2002
This is the right code for keeping a form on top, but it's not all.
There is a problem when the form is minimized, the form doesn't return to the topmost position.
you must put in the resize form this:
If WindowState = vbMinimized Then
SetWindowPos Me.hwnd, HWND_NOTOPMOST, X, Y, cX, cY, SWP_SHOWWINDOW
Else
SetWindowPos Me.hwnd, HWND_TOPMOST, X, Y, cX, cY, SWP_SHOWWINDOW
End If
one more thing, this doesn't work when the system is in debug mode, only in exe running mode, so don't be suprised if you run it (with F5) and you don't get the result you thought it would give.
hai
Posted on Monday, December 15, 2003
this is fine
Add Your Rating