by Manish Kumar Das (1 Submission)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 16th September 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Keeping a Window on Top
API Declarations
Const HWND_TOPMOST = -1
Const SWP_SHOWWINDOW = &H40
dim retVal As long
retVal = SetWindowPos(Me.hWnd, HWND_TOPMOST, Me.CurrentX, me.CurrentY, 300, 300, SWP_SHOWWINDOW)
End sub