Hi,
Anyone has an idea about how to force a Form
to remain behind all other Forms (i.e. a
background Form).
I tried vbModal and Zorder, but didn't work.
Thank you
Printable View
Hi,
Anyone has an idea about how to force a Form
to remain behind all other Forms (i.e. a
background Form).
I tried vbModal and Zorder, but didn't work.
Thank you
Try this:
This will make your form to be behind all windows.Code: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
Public Const HWND_BOTTOM = 1
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOACTIVATE = &H10
Public Const SWP_NOSIZE = &H1
SetWindowPos Form1.hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_NOMOVE Or SWP_NOSIZE
Finally!!! Thanks it worked.