In classic KiXforms, there was this:

 Code:
$Form.SysMenu = 0

That hides all of the window controls (minimize, maximize, close). It doesn't disable Alt-F4, though.

You could also use the following method:

 Code:
$Form.OnClosing = "fnCloseForm()"

Function fnCloseForm()
   $ = MessageBox("Oh no you don't!","I Am Forever!")
EndFunction

That will capture any attempt to close the form (short of killing the kix32 executable). If you go that route, be sure to build in a Quit command at the end of the login script.


Edited by eriqjaffe (2014-02-24 09:23 PM)