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. how to get the system idle time to logoff the system?

how to get the system idle time to logoff the system?

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
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.
  • J Offline
    J Offline
    jamesjk
    wrote on last edited by
    #1

    hi everybody, Could somebody pls help me to find a solution for this... I need to calculate the system idle time (I repeat SYSTEM idle time & not application idle time) I need to logoff the system if the user is not working not only in my application but he is away from his desk... so definitely Application.Idle is not goin to work since it just triggers for the particular application's idle time Thanks in Advance, Enjoy .Netting

    D 1 Reply Last reply
    0
    • J jamesjk

      hi everybody, Could somebody pls help me to find a solution for this... I need to calculate the system idle time (I repeat SYSTEM idle time & not application idle time) I need to logoff the system if the user is not working not only in my application but he is away from his desk... so definitely Application.Idle is not goin to work since it just triggers for the particular application's idle time Thanks in Advance, Enjoy .Netting

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      This is a really BAD idea. Have you considered the possibility that the user walks away from his desk with an unsaved document open? If you log this person off, any unsaved changes will be lost and that person might come hunting for you with a large weapon.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      J 1 Reply Last reply
      0
      • D Dave Kreskowiak

        This is a really BAD idea. Have you considered the possibility that the user walks away from his desk with an unsaved document open? If you log this person off, any unsaved changes will be lost and that person might come hunting for you with a large weapon.

        Dave Kreskowiak Microsoft MVP - Visual Basic

        J Offline
        J Offline
        jamesjk
        wrote on last edited by
        #3

        First of all thanks for the reply... I think I was not clear on the issue.. What I'm trin to achieve is a kind of screenlock.. Just as what we have in Windows if the system remains idle for a particular time... Once again thanks for the reply & keenly look forward to ur replies

        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