locked
Quit a Mobile App RRS feed

  • Question

  • I have a mobile app written in C# 3.5 .Net CF. At the top right of the main form is an "ok" button instead of the typical "X" to exit the application. I had another developer develop the shell of this app and I am unable to modify this in visual studio 2008. Isn't the standard to use an "X" to allow the user to close the app? Why am I unable to modify this in VS 2008?

     

    Thanks

    Chuck


    chuck
    Monday, October 4, 2010 11:57 PM

Answers

  • That was it!!!!!

     

    Thanks for your help


    chuck
    • Marked as answer by chucksalerno Tuesday, October 5, 2010 12:30 PM
    Tuesday, October 5, 2010 12:30 PM

All replies

  • Per WM design guidelines "X" minimized the application. Application not suppose to be closed by the user, just minimized. OS would terminate background applications as needed. You might want to read design guidelines, BTW.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, October 5, 2010 12:01 AM
  • Thanks Ilya,

    How can I change the "ok" in my main form to an "X" and have the app behave as per the standard?

    I can find no code or control that is handling the "ok" in the main form. I'm stumped.

     

    Chuck


    chuck
    Tuesday, October 5, 2010 12:05 AM
  • Typically it should show OK for for the modal dialogs (shown with .ShowDialog()) and X for non-modal dialogs (shown with .Show()).

    You would need to change how form is shown (unless it's done in some other way, e.g. via P/Invoke).


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, October 5, 2010 2:36 AM
  • Hi Chuck,

    To change "X" to "OK" from VS 2008, select FORM properties --> set MinimizeBox --> False.

    Regards,

    Malleswar

    Tuesday, October 5, 2010 5:13 AM
  • That was it!!!!!

     

    Thanks for your help


    chuck
    • Marked as answer by chucksalerno Tuesday, October 5, 2010 12:30 PM
    Tuesday, October 5, 2010 12:30 PM
  • Hi,

    Mark my thread as answer but not yours.

    Regards

    Malleswar

     

    Tuesday, October 5, 2010 3:04 PM