How to dispose the main form?

  • Thread starter Thread starter Zanna
  • Start date Start date
Z

Zanna

Hi all,

I cannot understand how to close definitively the main form of a CF app.
When I click on the "X" the form closed but I don't get the
"Cosing"/"Closed" events and the form is not disposed (if I get to the
"memory manager" I can still see my app running).

How to avoid this?

Bye
 
David Hanson said:
use application.Quit

But the "X" on the top-right still does not call che "Closing" event, so...
where I should put the Application.Quit?

Thanx
 
Set the MinimizeBox property of the Form to False. This will replace the X
with the OK button which will cause the form to be closed.
The X button only minimises the form.

Peter
 
Zanna said:
But the "X" on the top-right still does not call che "Closing" event, so...
where I should put the Application.Quit?

Thanx

If you have the X in the Upper right corner, clicking it does only a
smart minimize, not a close.
If you want close-functionality, set Minimize button and Maximize
button on your form to false, and you will have an ok-button in the
upper right corner. Clicking it will dispose your application
automatically.

bye,
Chris
 
Back
Top