C# - Checking if application is closing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hollywood115
    New Member
    • Feb 2008
    • 16

    C# - Checking if application is closing

    I have a quick question.
    I need to write to a file when my form closes... is there a way to make it so an event is fired when a user clicks the X button to close the window?

    Thanks in advance.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    I think you've posted your question in the wrong forum; this is the C/C++ forum,
    not the C# forum.

    kind regards,

    Jos

    Comment

    • iconma
      New Member
      • Feb 2008
      • 2

      #3
      take some view of the event of each form
      FormClosing
      and
      FormClosed

      hope it helps


      by the way, to the 1st floor, where is the c# forum in this site?

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by iconma
        by the way, to the 1st floor, where is the c# forum in this site?
        It's the .NET forum (third down in the list)

        kind regards,

        Jos

        Comment

        Working...