how to remove te red cross buttom form?
The other bottoms may exist.
I am using VB 2008
Printable View
how to remove te red cross buttom form?
The other bottoms may exist.
I am using VB 2008
Huh? "Red cross bottom form"? What is it are you refering to?
I am sorry I made a writing error , it must be button.
:)
It the red cross on the top right of the form, you can close the form with this button
Under Form Properties select ControlBox. Set this to False.
I think he means the close button.
it's an "X", not a cross (+) .... and it's known as the Form Close Button. I'm not sure if it's possible to remove it w/o also removing the control box menu (when you click on the form's icon) and the other buttons.... I know it's possible to remove the other buttons and leave the close button.... but the other way around... I don't know.
If you are trying to prevent the form from being closed, what you can do is use the Form's Closing event to see how the form is being closed and if it's because the suer clicked the close button, then set the e.cancel to true and the form won't close.
-tg
And that is exacally what it does.
Setting ControlBox to False removes the Close button on the top right.
And the minimize/maximize buttons.Quote:
Originally Posted by Lerroy_Jenkins
Well true, but I assumed that if they did not want the person to close the program, why would they want them to minimise or maximise?
Sorry for not stating sooner.
Thank you for correcting me on the terms.
That is what I was afraid from.
I think the only sollution is preventing the form to close.