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. Visual Basic
  4. Shutdown event

Shutdown event

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
4 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.
  • R Offline
    R Offline
    ravihd
    wrote on last edited by
    #1

    hi how do i capture windows shutdown/Logoff event in vb.net application. Thanks in advance regards ravi

    S 1 Reply Last reply
    0
    • R ravihd

      hi how do i capture windows shutdown/Logoff event in vb.net application. Thanks in advance regards ravi

      S Offline
      S Offline
      Sonia Gupta
      wrote on last edited by
      #2

      For Shutdown System.Diagnistic.Process.start("shutdown","/s") For Logout System.Diagnistic.Process.start("shutdown","/l") I am not sure about this

      R 1 Reply Last reply
      0
      • S Sonia Gupta

        For Shutdown System.Diagnistic.Process.start("shutdown","/s") For Logout System.Diagnistic.Process.start("shutdown","/l") I am not sure about this

        R Offline
        R Offline
        ravihd
        wrote on last edited by
        #3

        Hi Thank for prompt reply, this will shutdown my mechine, actualy i wanted to capture shutdown/logoff events in my vb.net application. I am running an application for capturing user status. if user shutdown the mechine then application should update current datetime before shutdown regards ravi

        S 1 Reply Last reply
        0
        • R ravihd

          Hi Thank for prompt reply, this will shutdown my mechine, actualy i wanted to capture shutdown/logoff events in my vb.net application. I am running an application for capturing user status. if user shutdown the mechine then application should update current datetime before shutdown regards ravi

          S Offline
          S Offline
          Sonia Gupta
          wrote on last edited by
          #4

          Application Shutdown Event]

          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