How to trap user clicking on title bar to close application

  • Thread starter Thread starter Arvin Rex
  • Start date Start date
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.
 
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.
 
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?
 
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
 
Back
Top