>Try looking at the property for the dialog [style].
>I don't remember wich one of them but I think you can select a type
wich
>disables this feature.
Remember this does not solve the Alt-F4 problem.
Rather check the OnCloseQuery event of the form
and evaluate the exit conditions there. (You'll
be able to set CanClose to False, then pressing
the 'x' will have no effect, as well as pressing
Alt-F4, as well as right-clicking on the caption
bar and selecting close...
-----
I forgot that you still want the maximize and minimize buttons, so
here's another solution:
EnableMenuItem( GetSystemMenu( Form1.Handle, LongBool( False )),
SC_CLOSE, MF_BYCOMMAND or MF_GRAYED );