Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / November 2007

Tip: Looking for answers? Try searching our database.

User Activity

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MDB - 08 Nov 2007 15:23 GMT
Hello all, what is the best way to keep track of user activity?  Is there
anything built into CF2.0 that I can use?

TIA
Paul G. Tobey [eMVP] - 08 Nov 2007 15:47 GMT
For what purpose?  The OS itself handles detecting that the user has been
idle for some period of time and you have no access to that information,
other than to reset the counter with SystemIdleTimerReset().

Paul T.

> Hello all, what is the best way to keep track of user activity?  Is there
> anything built into CF2.0 that I can use?
>
> TIA
MDB - 08 Nov 2007 15:56 GMT
I have a messaging class the is in a seperate thread that is in a loop that
checks for messages every minute.  I want to pause this after 5 minutes of
inactivity and then load a form informing the user that the device is
"sleeping".

> For what purpose?  The OS itself handles detecting that the user has been
> idle for some period of time and you have no access to that information,
[quoted text clipped - 6 lines]
>>
>> TIA
Paul G. Tobey [eMVP] - 08 Nov 2007 16:16 GMT
Wouldn't the user be just as well-informed when the screen went off that the
device was sleeping?  Sorry, I know that I don't have a copy of your
requirements specification or anything, but it seems to me that you ought to
just let the Power Manager do its job.  You can take a look at the thread
"Device won't idle time out when my app is running" in the archives (use
GoogleGroups to search for it in
microsoft.public.dotnet.framework.compactframework, of course), for some
information that might work on your device to see when user activity occurs.
Be sure that you really want to use this stuff, though.  Showing a window
that says that the device is asleep isn't a good use of the capability,
according to me. ;-)

Paul T.

>I have a messaging class the is in a seperate thread that is in a loop that
>checks for messages every minute.  I want to pause this after 5 minutes of
[quoted text clipped - 11 lines]
>>>
>>> TIA

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.