View Full Version : Close Box on Forms


JimMiller
01-16-2002, 07:06 AM
I am trying to remove the close box from a form. I have disabled the Close Button property and have had no luck. Does anyone know any other methods to remove the close box at the top right of a form?

Fizzio
01-16-2002, 07:35 AM
Set Control Box to No and Close Button to No
(Also gets rid of Min/Max though)
If your BorderStyle is Dialog, Mix/Max buttons will never show.

HTH

JimMiller
01-16-2002, 07:49 AM
Thanks for you response!

You suggestion doesn't seem to be working, I believe it is because I am setting the following properties on start up

ChangeProperty "StartupShowDBWindow", dbBoolean, False
ChangeProperty "StartupShowStatusBar", dbBoolean, False
ChangeProperty "AllowBuiltinToolbars", dbBoolean, False
ChangeProperty "AllowFullMenus", dbBoolean, True
ChangeProperty "AllowBreakIntoCode", dbBoolean, False

Any Ideas?

JimMiller
01-16-2002, 08:09 AM
test

Fizzio
01-17-2002, 04:34 AM
I have these settings also set via the tools menu - Startup (except AllowBreakIntoCode) and it works fine, So I cant help you there.

JimMiller
01-30-2002, 07:27 AM
Everything works except when you maximize the form. When maximized, the close button reappears in the top right corner.

I think it migth have to do with the custom menu bar I created. The close box does not appear in the custom menu bar until I maximize the form.

Does anyone have any ideas or thoughts?

[This message has been edited by JimMiller (edited 01-30-2002).]