How to know the User Log off or Shutdown the system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mafaisal
    New Member
    • Sep 2007
    • 142

    How to know the User Log off or Shutdown the system

    Hello Experts

    When the system user Log off the system , shutdown and so on How to know that in vbcode
    Bcoz When user Log on i have vb application that automatically work, but when user logg off , shut down i have write code in application

    Please Help me

    Faisal
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    I don't understand how your code will work if the system itself is shutdown.

    Comment

    • mariusseven
      New Member
      • Mar 2008
      • 19

      #3
      Post your code...pls

      Comment

      • 9815402440
        New Member
        • Oct 2007
        • 180

        #4
        hi
        use QueryUnload event of form or mdi form
        use following constants to check

        vbAppWindows: The current Microsoft Windows operating environment session is ending.
        vbAppTaskManage r: The Microsoft Windows Task Manager is closing the application.


        regards
        manpreet singh dhillon hoshiarpur

        Comment

        Working...