How to trap user clicking on title bar to close application

A

Arvin Rex

My application uses a form to open a report. I want to constrain my user to use a custom tool bar command to exit from the applications. How can I either disable the CLOSE button on the title bar OR trap the event when the user tries to click it.
 
G

Guest

On the Form properties select the CloseButton Property, change it to No.
That will remove the close button from the top, you can also remve the Max
and Min button.
 
A

Arvin Rex

Ofer said:
On the Form properties select the CloseButton Property, change it to No.
That will remove the close button from the top, you can also remve the Max
and Min button.

:
Thanks. But how do you do this in Code?
 
G

Guest

Open the form in design view, double click on the left top corner of the
form, or go to tool bar, view, proprties, and then click on the top left
corner to get the properties of te form, and then do as I described in the
prev post.

It's not actualy code, you just change the property fron no to yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top