Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. What event fired??

What event fired??

Scheduled Pinned Locked Moved C#
helpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Janu_M
    wrote on last edited by
    #1

    Hi i developed a windows application, after completion of the processing it has to write the results in to a file. I wrote code for this form_closing event. It is working fine when i closes the application. My problem is If the system is shutting down with out closing the application it is not writing data in to the file. I dont know what event is fired when the application is closed by shutdown. It is very important to store the results into the file. Please Help me. Thanks in Advance. Ramu

    J A 2 Replies Last reply
    0
    • J Janu_M

      Hi i developed a windows application, after completion of the processing it has to write the results in to a file. I wrote code for this form_closing event. It is working fine when i closes the application. My problem is If the system is shutting down with out closing the application it is not writing data in to the file. I dont know what event is fired when the application is closed by shutdown. It is very important to store the results into the file. Please Help me. Thanks in Advance. Ramu

      J Offline
      J Offline
      joon vh
      wrote on last edited by
      #2

      Here's a small tutorial: Making a Windows Forms App Respond to System Shutdown[^] It looks like it is the answer to your problem.


      public object BufferOverFlow { __get { return BufferOverFlow; } __set { BufferOverFlow = value; } }

      J 1 Reply Last reply
      0
      • J Janu_M

        Hi i developed a windows application, after completion of the processing it has to write the results in to a file. I wrote code for this form_closing event. It is working fine when i closes the application. My problem is If the system is shutting down with out closing the application it is not writing data in to the file. I dont know what event is fired when the application is closed by shutdown. It is very important to store the results into the file. Please Help me. Thanks in Advance. Ramu

        A Offline
        A Offline
        AB7771
        wrote on last edited by
        #3

        just use the form closing event and use the FormCloseEventArgs object and check if( e.Closereason == CloseReason.WindowsShutDown) hope that is useful for u...

        Thanks & Regards, Pramod "Everyone is a genius at least once a year"

        J 1 Reply Last reply
        0
        • J joon vh

          Here's a small tutorial: Making a Windows Forms App Respond to System Shutdown[^] It looks like it is the answer to your problem.


          public object BufferOverFlow { __get { return BufferOverFlow; } __set { BufferOverFlow = value; } }

          J Offline
          J Offline
          Janu_M
          wrote on last edited by
          #4

          Thank You Very Much. This helps a lot for me. Thank You Ramu

          1 Reply Last reply
          0
          • A AB7771

            just use the form closing event and use the FormCloseEventArgs object and check if( e.Closereason == CloseReason.WindowsShutDown) hope that is useful for u...

            Thanks & Regards, Pramod "Everyone is a genius at least once a year"

            J Offline
            J Offline
            Janu_M
            wrote on last edited by
            #5

            Thank You very Much. This helps me a lot. Thank You Ramu.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups