PC Review


Reply
Thread Tools Rate Thread

How to dispose the main form?

 
 
Zanna
Guest
Posts: n/a
 
      15th Nov 2003
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

--
Math Parser : http://www.neodatatype.net




 
Reply With Quote
 
 
 
 
David Hanson
Guest
Posts: n/a
 
      15th Nov 2003
use application.Quit

"Zanna" <(E-Mail Removed)> wrote in message
news:bdntb.31374$(E-Mail Removed)...
> 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
>
> --
> Math Parser : http://www.neodatatype.net
>
>
>
>



 
Reply With Quote
 
Zanna
Guest
Posts: n/a
 
      15th Nov 2003
"David Hanson" <(E-Mail Removed)> wrote in message

> 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

--
Math Parser : http://www.neodatatype.net


 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      15th Nov 2003
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" <(E-Mail Removed)> wrote in message
news:nOntb.31575$(E-Mail Removed)...
> "David Hanson" <(E-Mail Removed)> wrote in message
>
> > 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
>
> --
> Math Parser : http://www.neodatatype.net
>
>



 
Reply With Quote
 
Zanna
Guest
Posts: n/a
 
      15th Nov 2003
"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message

> The X button only minimises the form.


Oh!

Thank you all


--
Math Parser : http://www.neodatatype.net


 
Reply With Quote
 
Christian Waidner
Guest
Posts: n/a
 
      15th Nov 2003
"Zanna" <(E-Mail Removed)> wrote in message news:<nOntb.31575$(E-Mail Removed)>...
> "David Hanson" <(E-Mail Removed)> wrote in message
>
> > 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


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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Requery main form after subform update and not lose place in main form. Michael Microsoft Access Form Coding 1 23rd Nov 2010 09:26 PM
Link Subforms to Main Form - 2 Linked Combo Boxes in Main Form =?Utf-8?B?Sm9obiBE?= Microsoft Access Form Coding 3 4th Feb 2007 02:08 AM
Form dispose hides the main form Wolfgang Link Microsoft Dot NET Compact Framework 1 1st Feb 2006 05:41 PM
Form.Dispose does not invoke InputPanel.Dispose tomj@softhome.net Microsoft Dot NET Compact Framework 3 24th Jan 2006 03:28 PM
dispose and nothing? whats the main difference? =?Utf-8?B?QXNoYQ==?= Microsoft ASP .NET 3 14th Jul 2004 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:55 PM.