| 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) As Long Sub StayOnTop(TheForm As Form) 'This Sub will keep your form(s) on top of everything. Use this Sub like this: '"StayOnTop Me" 'Put the code above in the Form_Load Sub. SetWinOnTop = SetWindowPos(TheForm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS) End Sub |
Keep your form(s) on top of everything |
Express News India | Freelance ecommerce web development India