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. onshutdown() problem

onshutdown() problem

Scheduled Pinned Locked Moved C#
helpcsharptutorial
3 Posts 2 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.
  • A Offline
    A Offline
    Ajithevn
    wrote on last edited by
    #1

    Hi all i have a c# application on minimizing i place it into the system tray.now when the application is in the system tray and the user shutdown the system a log file should be written into a temp folder in c:\ i tried using onshutdown() it is not working, it would be better to say i dont know how to use it in my application plz help me

    N 1 Reply Last reply
    0
    • A Ajithevn

      Hi all i have a c# application on minimizing i place it into the system tray.now when the application is in the system tray and the user shutdown the system a log file should be written into a temp folder in c:\ i tried using onshutdown() it is not working, it would be better to say i dont know how to use it in my application plz help me

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Handle the form's closing event. FormClosingEventArgs has a CloseReason property. If it is CloseReason.WindowsShutDown, write log file.

      Navaneeth How to use google | Ask smart questions

      A 1 Reply Last reply
      0
      • N N a v a n e e t h

        Handle the form's closing event. FormClosingEventArgs has a CloseReason property. If it is CloseReason.WindowsShutDown, write log file.

        Navaneeth How to use google | Ask smart questions

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

        thanks a lot. it works fine

        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