How do i set a form to be at the front of all other windows using VB as i wish this screen to remain active until the allotted time has expired. Please help...??
Private Declare Sub 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)
The in code, the call would be as follows, from within the Form you want to bring topmost.
SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, (SWP_FRAMECHANGED Or SWP_NOMOVE Or SWP_NOSIZE)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.