What are you actually trying to do, have an application that can never be closed, just minimised or what is it you want.
If you want to prevent it from being closed, why don't you hide the controlbox on the form, this will do it for you. You could then have a minimise button and as long as showInTaskBar is true, you have what you want, I think, but then I am not sure what you want.