help sending a form to bottom
-
i need a function, method, or api with which you can send a form to botton, not to top, so that the form will appear behind all other windows and above the desktop thank you in advance
-
i need a function, method, or api with which you can send a form to botton, not to top, so that the form will appear behind all other windows and above the desktop thank you in advance
Hi, From VB you can use ZOrder,
MyForm.ZOrder 0
will send the form to the top of the z orderMyForm.ZOrder 1
will send it to the bottom of the z order If you are looking for more control, check SetWindowPos API function,BOOL SetWindowPos(
HWND hWnd, // handle to window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
);where hWndInsertAfter is a handle to the window to precede the positioned window in the Z order or one of the following values. HWND_BOTTOM HWND_NOTOPMOST HWND_TOP HWND_TOPMOST Check the MSDN for a detailed explanation. Fabian