Application.Exit und Closing Ereigniss



  • Hallo,

    ich schliesse meine Anwendung mit Application.Exit müsste er dann nicht auch das Closing Ereigniss meines Formulars aufrufen?
    Denn irgendwie macht er das nur wenn ich es über Close schliesse



  • Steht doch in der Doku.

    CAUTION The Form.Closed and Form.Closing events are not raised when the Application.Exit method is called to exit your application. If you have validation code in either of these events that must be executed, you should call the Form.Close method for each open form individually before calling the Exit method.



  • Im Allgemeinen halte ich es sowieso nicht für eine gute Idee, ein Programm per Application.Exit() zu beenden.


Anmelden zum Antworten