declare integer GetWindowLong ; in user32 ; as __GetWindowLong__ ; integer, ; integer declare integer SetWindowLong ; in user32 ; as __SetWindowLong__ ; integer, ; integer, ; integer * hide this window from the taskbar and switchbar * #define WS_EX_TOOLWINDOW 0x80 * #define WS_EX_APPWINDOW 0x40000 local lnStyle lnStyle = __GetWindowLong__(HWND, -20) if bitand(m.lnStyle, 0x40000) = 0x40000 then lnStyle = bitxor(m.lnStyle, 0x40000) =__SetWindowLong__(HWND, -20, m.lnStyle) && remove from taskbar endif =__SetWindowLong__(HWND, -20, bitor(m.lnStyle, 0x80 )) && remove it also from switch barAlso, in VFP6 there is no way to know HWND directly from a form's property like in VFP7. You can use a few otehr Windows API functions to get it, as well as there are a few other approaches (you can find them at this site).