-
Hi,
I want to disable the restore or resize button on a form. It is the one in the middle of the minimise button and the close /exit program button. It looks like a square. It is in the top right hand corner of screen of most programs. How can I disable it in code and where can i put it in (Form load etc). I'm sorry I dont know the technical names for them... any help is appreciated and thanx in advance
Mike
-
You can set the form's MaxButton Property to false. You can do this in design time in the Property window.
------------------
Seth
-
The buttons are called:
Minimize and Maximize. To disable either one just set it to false. You can do it via code or just on the property sheet. If you want to remove the max, min and the close (X) then just set ControlBox to false.
------------------
'cos Buzby says so!'
-
Thanx guys..... I knew it was a stupid question and an easy one. Thanks once again.
-
There is an interesting answer if you want to
avoid the user from physically resizing your form. Also avoid him from moving the form to other location on the screen. Want it ????