Share this page 

Hide a program from the Windows task barTag(s): WinAPI/Registry


You can set the visible property of a window to false
w_window.visble = false
but the window is not visible anymore.

To keep the window visible but not in the task bar, define the external function

FUNCTION ulong SetWindowLongA( ulong hWnd, int nIndex, long newValue ) &
LIBRARY "USER32.DLL"
and then in the window open event
long ll_rc

ll_rc = SetWindowLongA(Handle(This), -20, 128)
IF ll_rc = 0 THEN
   // something wrong on the kingdom!
END IF