|
-
Jun 21st, 2005, 12:33 AM
#1
Thread Starter
Junior Member
[Resolved] Application to be kept "ALWAYS ON TOP"
I want to keep a VB application always on top of other applications. Can anyone suggest how to do so ?
Thanx
Last edited by funky_chunky; Jun 21st, 2005 at 05:27 AM.
Reason: Resolved
-
Jun 21st, 2005, 12:40 AM
#2
Re: Application to be kept "ALWAYS ON TOP"
In module:
Public 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)
In a form:
Call SetWindowPos(Me.hWnd, -1, 0, 0, 0, 0, 3)
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
|