Jump to content

No end command?


Guest PaulOBrien

Recommended Posts

Guest Paul [MVP]

The 'end' command does not seem to be supported in .NET CF for SmartPhone...

So would I be right in saying that, in line with the Microsoft Logo Certification guidelines, you cannot 'quit' an application?

P

Link to comment
Share on other sites

  • 3 months later...

I think you need to do a this.Close(); from the open form. When the last form is closed the app dies. Application.Exit() isn't great - it can bypass a bit of garbage collection.

hth

joel

Link to comment
Share on other sites

  • 2 weeks later...
Guest ultimasnake

this.dispose

and then

application.exit

and maybe GC.collect before even the close...

that is one of the best ways..

End doesnt exist in .net anymore (not even the full .net library)

Link to comment
Share on other sites

Guest NeilC_MVP

As a best practice, it is not advisable to call GC.Collect() since the GC is asynchronous and may well be in the middle of a clean-up cycle when you call GC.Collect().

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.