How to make my vb form to be the topmost application in front of all other applications that was running on my system?
Printable View
How to make my vb form to be the topmost application in front of all other applications that was running on my system?
VB Code:
Option Explicit Private 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) As Long Private Sub Form_Load() Call SetWindowPos(hwnd, -1, 0, 0, 0, 0, 3) End Sub