Re: Application Timeout Required
From: Alok (alok_sathaye_at_pune.tcs.co.in)
Date: 07/03/04
- Next message: news.microsoft.com: "MDI Child Form location change URGENT!!!"
- Previous message: Dincer Uyav: "RE: DataRow to DataGridRow."
- In reply to: Gerrit: "Re: Application Timeout Required"
- Next in thread: Gerrit: "Re: Application Timeout Required"
- Reply: Gerrit: "Re: Application Timeout Required"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 2 Jul 2004 18:54:23 -0700
On one of the other post said implementing the IMessageFilter and re-setting
the timer.
But, thing is that probably IDle event also goes thru' the Message Filter.
hence that doesn't work...
Considering the Keyboard and mouse, with a full-blown Mdi app, it would be a
monstrous effort to acheive that.
Does anybody have a plug-in / control that can be bought ?? Even a COM
component would work, I suppose !!!
TIA :)
"Gerrit" <msng1@newsgroups.nospam> wrote in message
news:eAMiRbDYEHA.3988@tk2msftngp13.phx.gbl...
> I guess that depends on your app and what the user does within it.
>
> You could attach to the Application.Idle event, check the active control
and
> store it. Set the timer to fire every 20 minutes and reset it when the
"new"
> activecontrol is not the one you have stored (via the Application.Idle
> event). But there are probably more elegant ways to do it.
> Another idea would be track when the user uses the keyboard (use the
form's
> KeyPreview) and/or mouse.
>
> HTH,
>
> Gerrit
>
> "Alok" <alok_sathaye@pune.tcs.co.in> wrote in message
> news:ONuwiUDYEHA.3664@TK2MSFTNGP12.phx.gbl...
> > I actually had thinking about this.
> > But, how do you know, when the user last worked ????
> > Do you mean to say that i trap all user movements like keyboard, mouse
> > etc... ???
> >
> > TIA :)
> >
> > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> > news:2kl1vfF3nn2kU1@uni-berlin.de...
> > > * "Gerrit" <msng1@newsgroups.nospam> scripsit:
> > > > System.Windows.Forms.Timer
> > >
> > > Yep. Add a timer that checks the current time every second, for
> > > example, and calculates the difference to the last time the user
worked
> > > with the software.
> > >
> > > --
> > > Herfried K. Wagner [MVP]
> > > <URL:http://dotnet.mvps.org/>
> >
> >
>
- Next message: news.microsoft.com: "MDI Child Form location change URGENT!!!"
- Previous message: Dincer Uyav: "RE: DataRow to DataGridRow."
- In reply to: Gerrit: "Re: Application Timeout Required"
- Next in thread: Gerrit: "Re: Application Timeout Required"
- Reply: Gerrit: "Re: Application Timeout Required"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|