Jump to content

No end command?


Recommended Posts

Guest Paul [MVP]
Posted

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

Guest Paul [MVP]
Posted

OK, it's sad to answer your own question, but the function is:

Application.Exit();

:)

P

  • 3 months later...
Posted

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

  • 2 weeks later...
Guest ultimasnake
Posted

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)

Guest NeilC_MVP
Posted

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().

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.