How to remove the form close button( not to disable)?
-
How to remove the form close button( not to disable)? And only display MaximizeBox and MinimizeBox. Thinks~~
[Message Deleted]
-
How to remove the form close button( not to disable)? And only display MaximizeBox and MinimizeBox. Thinks~~
-
try this this.ControlBox=false ;
-
try this this.ControlBox=false ;
He wants to keep the max and min buttons - Disabling the control box will get rid of all the buttons and the form icon. To be honest I don't see why he would want to remove the close button, he would be better off catching the form close event and doing what he wants to do there. Mark.
-
How to remove the form close button( not to disable)? And only display MaximizeBox and MinimizeBox. Thinks~~
It can't be done AFAIK. You can disable it, remove the Close menu (and separator) from the system menu and handle Alt+F4 - but that's as close as you can get. You could create your own control class that has this functionality but it would be a LOT of work to just make a button invisible when it can be disabled with little effort.
Dave
-
How to remove the form close button( not to disable)? And only display MaximizeBox and MinimizeBox. Thinks~~
Hmmm... someone asked that just a month ago: http://www.codeproject.com/script/Forums/View.aspx?fid=1649&select=2436995&tid=2436667[^]
-
Hmmm... someone asked that just a month ago: http://www.codeproject.com/script/Forums/View.aspx?fid=1649&select=2436995&tid=2436667[^]
-
He wants to keep the max and min buttons - Disabling the control box will get rid of all the buttons and the form icon. To be honest I don't see why he would want to remove the close button, he would be better off catching the form close event and doing what he wants to do there. Mark.
-
Hmmm... someone asked that just a month ago: http://www.codeproject.com/script/Forums/View.aspx?fid=1649&select=2436995&tid=2436667[^]
-
[Message Deleted]