Link to home
Start Free TrialLog in
Avatar of Mach1pro
Mach1pro

asked on

Remove Close button but leave the Minimize Maximize

Is there any way to remove the Application's Close button, but still leave the Minimize and Maximize buttons?
I've played with the APIs  GetWindowLong and SetWindowLong for over an hour. It seems like it's all or nothing.
ASKER CERTIFIED SOLUTION
Avatar of PsychoDazey
PsychoDazey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of caw81677
caw81677

If you got to view >properties or press F4, it will bring up the properties for that report or form.  Under the format tab there will be an option listed called "close button". Just change from yes to no and the close button will not be available.

Hope this is what you are referring to.
Yes, there's a property for Close Button, turn that to NO, but also remember to make the form's border style = Sizable.
Glad I could help out Mach.  I had to use that same article a while back, I didn't have any issues with it so far!