Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Mike,
I agree that allowing the user to close the application from a Modal form, it is "technically" not a modal form. But using a modal form does prevent the user from opening any other forms in the app until they are finished with the current screen.
Several of my reasons for doing this:
1. I use Modal screens sparingly, mainly for critical data entry screens and pop up messages. Most data entry screens are modeless to allow copy and paste from other screens.
2. I must be able to remotely and programatically close the app. easily when required.
3. It allows the app to close properly when the user shuts down the computer without closing my application, even when a modal screen is on top.
4. My main reason for leaving _screen.closable at all times is for consistency, to allow the user to close the App. by clicking on the close button in the right corner of the main screen. After all, this is the common way to terminate any Windows app. I do this to avoid confusion and negative remarks. (Why can't I close this #%@$# program on some screens while all other Windows programs allow me to close them in this way?)
Closing the app in this way, whether the active form is Modal or Modeless closes the form in the same way as clicking on a cancel button. And it terminates the program as the user expects it to.
Thanks for your response. Although I don't always agree with everything I read in this forum, I respect the opinion of others and I find that I learn something from almost every post. If for no other reason, it makes me think and evaluate other ways of doing the same thing.
Elmer
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement