How to make a window not closeable and always on top? lazarus / 10-Designer ---------------------------------------------------------------------- trapanator · 2009-02-19 09:08 Hi anybody! I created a TForm1 and made these properties: Code: [Select]BorderStyle: bsDialog BorderIcons: [] FormStyle: fsStayOnTop But how can I make the window "always on top" and not closeable (disabling the X button)? ---------------------------------------------------------------------- cpalx · 2009-02-19 15:41 use the onclose event ---------------------------------------------------------------------- LazaruX · 2009-02-22 09:39 Border Style - bsNone ANd maybe onClose recreate the form (Are you trying to make a virus?  ) ---------------------------------------------------------------------- Bart · 2009-02-22 11:52 OnCloseQuery -> set CanClose to False. Form can never close ... Bart