Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: Console Menu Application Pin
Lutosław25-Aug-07 9:16
Lutosław25-Aug-07 9:16 
QuestionXML attribute Pin
ytubis25-Aug-07 5:30
ytubis25-Aug-07 5:30 
QuestionTime elapsed since user logged in Pin
Lutosław25-Aug-07 5:25
Lutosław25-Aug-07 5:25 
AnswerRe: Time elapsed since user logged in Pin
Hessam Jalali25-Aug-07 12:16
Hessam Jalali25-Aug-07 12:16 
GeneralRe: Time elapsed since user logged in Pin
Lutosław25-Aug-07 23:21
Lutosław25-Aug-07 23:21 
GeneralRe: Time elapsed since user logged in Pin
Hessam Jalali26-Aug-07 0:26
Hessam Jalali26-Aug-07 0:26 
GeneralRe: Time elapsed since user logged in Pin
Lutosław26-Aug-07 0:51
Lutosław26-Aug-07 0:51 
GeneralRe: Time elapsed since user logged in Pin
Hessam Jalali28-Aug-07 10:39
Hessam Jalali28-Aug-07 10:39 
first sorry for delay I was in vacation Smile | :)

yes you're right it cannot be done as straight as a simple win App
but with services you can, and writing services in .NET is not harder than writing simple winApp

it can be done with services because they'll works even when a user switch or logoff.
and I think you must log some data byyourself if you need accurate times (like finding hibernate time and subtract it and ...)


gajatko wrote:
if e.g. some other guy kicked him out for a while because he "just wanted to check mailbox", but after that that guy could return back

there is another event in SystemEvents Class name SessionSwitch it will occur when the user going to change so I think UserSwitch would be included and when you hibernate it seems something like userSwitch happens (but I'm not sure) so maybe this event would be useful.

gajatko wrote:
from yesterday evening, when Windows was hibernated (28 hours?? Oh God...).

another event is PowerModeChanged which will return your computer is going to suspend mode or not and hibernate is counted as a suspend mode (atleast in .NET)this event may help to retrieve hibernate status too.

and at last I think you can retrieve some data from the Service status (like Puase/Stop) and use it for finding machine state like shutdown hibernate


good luck Smile | :)
QuestionProblem to Loading Data via Another Form. Pin
hdv21225-Aug-07 4:49
hdv21225-Aug-07 4:49 
QuestionTag name Pin
ytubis24-Aug-07 23:44
ytubis24-Aug-07 23:44 
AnswerRe: Tag name Pin
Christian Graus25-Aug-07 0:49
protectorChristian Graus25-Aug-07 0:49 
AnswerRe: Tag name 2 Pin
Luc Pattyn24-Aug-07 23:35
sitebuilderLuc Pattyn24-Aug-07 23:35 
GeneralRe: Tag name 2 Pin
hdv21225-Aug-07 7:56
hdv21225-Aug-07 7:56 
GeneralRe: Tag name 2 Pin
Luc Pattyn25-Aug-07 8:21
sitebuilderLuc Pattyn25-Aug-07 8:21 
GeneralRe: Tag name 2 Pin
Paul Conrad25-Aug-07 9:26
professionalPaul Conrad25-Aug-07 9:26 
AnswerRe: Tag name Pin
Luc Pattyn24-Aug-07 23:33
sitebuilderLuc Pattyn24-Aug-07 23:33 
GeneralRe: Tag name Pin
ytubis24-Aug-07 23:45
ytubis24-Aug-07 23:45 
Questionwebhosting Pin
kalyan_241624-Aug-07 22:53
kalyan_241624-Aug-07 22:53 
Answerummk Pin
invalidsyntax101025-Aug-07 7:28
invalidsyntax101025-Aug-07 7:28 
QuestionHow to catch Url from internet explorer in my Downloader? Pin
Pinkesh Gandhi24-Aug-07 22:50
Pinkesh Gandhi24-Aug-07 22:50 
QuestionReusing a socket Pin
Chals24-Aug-07 22:30
Chals24-Aug-07 22:30 
Question)c# Pin
lankaudaranga24-Aug-07 22:20
lankaudaranga24-Aug-07 22:20 
AnswerRe: )c# Pin
Christian Graus25-Aug-07 0:50
protectorChristian Graus25-Aug-07 0:50 
GeneralRe: )c# Pin
Paul Conrad25-Aug-07 9:28
professionalPaul Conrad25-Aug-07 9:28 
Questionc# Pin
lankaudaranga24-Aug-07 22:10
lankaudaranga24-Aug-07 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.