Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8388291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:26:35+00:00 2026-06-09T18:26:35+00:00

Is there a code to exit from the metro style application? In C#, C++,

  • 0

Is there a code to exit from the metro style application? In C#, C++, or VB, there are examples like CoreApplication.Exit() but I couldn’t find something like that for Javascript.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:26:36+00:00Added an answer on June 9, 2026 at 6:26 pm

    The general recommendation is that apps do not provide their own close affordances. In your example, closing automatically in response to a loss of network connectivity will appear as if the app crashes under such conditions. As such, it may not actually pass Windows Store certification on that point along (see requirements, section 3.2 about apps that end unexpectedly). Furthermore, section 3.6 prohibits apps closing themselves as already noted, so you’ll fail on that as well.

    Calling window.close will generate a crash report that appears within the Windows Store dashboard, and will be logged as an app crash, in fact (this may end up counting against the app in the Store–not sure about that, but I wouldn’t risk it). In this case, it’s better to use MSApp.terminateApp because the crash report will be much more comprehensive (and you can include your own info). Still, MSApp.terminateApp should only be used for truly unrecoverable conditions.

    If you have a condition under which the app can’t continue to run effectively, but isn’t a crash, per se, like the loss of network connectivity, it’s better to inform the user of that condition and let them decide whether to close the app (through Alt +F4 or the top-down swipe close gesture) in response. You should also detect when network connectivity has been restored and continue, of source. This way the app hasn’t lost its state and can continue where it left off, thereby providing a contiguous user experience.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do i return a non-zero exit code from a Windows Forms application. Application.Exit()
I have seen some code do this: if(something){ echo 'exit from program'; die; }
I'd like to return a specific line from the EXIT CODE section of a
There is code for save button, but I can't see any code behind the
In my code there are a lot of final values, like 10000. They never
In the code there exists exactly one type that implements IResourceConverter. That's what the
In my code there are some calls to a method that set the values
In a .f file there is code that does this: real Bob, avar ...
I don't think I need to post my code (there's lots of it) but
Today I ran against the fact, that sys.exit() called from a child-thread does not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.