|
-
February 3rd, 2000, 09:09 AM
#1
Always on top
How can i make my form stay on top, even when another window is active?
Tom Cannaerts
[email protected]
-
February 3rd, 2000, 09:20 AM
#2
Re: Always on top
Try this:
private Declare Function SetWindowPos Lib "user32" (byval hwnd as Long, byval hWndInsertAfter as Long, byval x as Long, y, byval cx as Long, byval cy as Long, byval wFlags as Long) as Long
private Const HWND_TOPMOST = -1
private Const SWP_NOMOVE = &H2
private Const SWP_NOSIZE = &H1
private Sub Command1_Click()
SetWindowPos hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|