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 7166729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:27:38+00:00 2026-05-28T14:27:38+00:00

Windows Mobile 6.5.3 Professional .NET Framework 3.5 C# Visual Studio 2008 Windows 7 Professional

  • 0

Windows Mobile 6.5.3 Professional
.NET Framework 3.5
C#
Visual Studio 2008
Windows 7 Professional SP1

When the app runs on an MC75A, a small icon with an X (or OK if the form’s MinimizeBox property is set false) is present at the top right in the “title bar”. I have been advised that the app must terminate when that icon is pressed. I would like to establish an event handler to trigger on the press event, perform wrapup, and terminate the app (Application.Exit).

I do not know how to detect the icon press. Further, are there any suggestions on the best method to achieve shutdown?

TIA

  • 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-05-28T14:27:39+00:00Added an answer on May 28, 2026 at 2:27 pm

    The (X) is a minimize. It should minimize, not exit the app. Follow expected platform behavior. Clicking (ok) will close the Form, returning control back to whomever showed the Form. If the caller was Application.Run(), then the app will terminate normally and this is the pattern you should be striving to achieve. Closing a sub-form or dialog is again not expected behavior.

    If you really must close the app, then just add this to the Form code:

        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            Application.Exit();
        }
    

    Again, I’d still disagree with this. As a general rule, if your app is manually calling Application.Exit(), you have a design problem.

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

Sidebar

Related Questions

We're doing windows mobile development using the WM6 Professional emulator through visual studio 2008
I have a windows mobile app developed under windows XP / Visual Studio 2008.
I have a .net 3.5 application running on windows mobile professional that uses sql
I have an application that runs on Windows Mobile 6 Professional PDA devices. The
How to apply scrollbar to windows mobile application using .net compact framework, and windows
I have a Windows Mobile 6 Professional native project that runs ok on Win
I have a small windows mobile app with roughly 25 forms and maybe 50
What is the best way to start developing Windows Mobile Professional applications in Python?
Is it possible to target Windows Mobile 6 Professional and Standard from one project?
I've recently bought myself a new cellphone, running Windows Mobile 6.1 Professional. And of

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.