I want to keep a VB application always on top of other applications. Can anyone suggest how to do so ?
Thanx
Printable View
I want to keep a VB application always on top of other applications. Can anyone suggest how to do so ?
Thanx
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)