I am currently writing an application and need to remove the close option from the form (The x button at the top right). I see that there are many examples of how to disable the close button and how to remove all the buttons. But for my application I would like to have only the minimize option available and thus the examples I have seen for VB.net will not help.
Does anybody know how to just remove the close button?
Thanks
I am not aware of remooving the close button keeping other buttons in place. It generally works the other way. (You can get the minimize and maximize buttons out, but not the close button)
However you can remove all buttons by setting the ControlBox property of the form to false. And implement your own close button.
Maybe this is a safety mechanism by .Net so that people dont accidently remove the close button and then try to figure out how to close it!
cheers