| 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) 'this code makes the window stay on top rtn = SetWindowPos(OnTop.hwnd, -2, 0, 0, 0, 0, 3) 'window will not stay on top with this code rtn = SetWindowPos(OnTop.hwnd, -1, 0, 0, 0, 0, 3) |
Make a form stay on top of all other forms |
Express News India | Freelance ecommerce web development India