473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Check if an Windows Application is Idle for a Period of Time(1 Hour) and Close Appl.

Hi All,

Did Anyone of you are aware of How to Find Windows Application(Winform) Idle time and If so, Close the Application.

Thanks,
Uday.
Nov 19 '08 #1
5 3160
joedeene
583 512MB
Maybe a Timer? And, use the form's MouseMove Event. Be sure to set the timer's interval rate at a real high number, like 10000 milliseconds.

joedeene
Nov 19 '08 #2
r035198x
13,262 8TB
Using a timer is good, you'll need that. Using a particular event like mouse movement is not correct. There are so many other events that need to be catered for. Better use the Application.Idle event. Be sure to read and understand its specs fully before writing any code though. It does have a few gotchas.
Nov 19 '08 #3
Hi Thanks for early Replies,

I want to implement this on Application Level. Like if I use Timer, I need to Start Timer in each and every form load. Is there any alternative for this. Like can we handle this on Operating System Level.


Thanks,
Uday
Nov 19 '08 #4
Plater
7,872 Expert 4TB
There are more Timers then just the one you drag and drop onto your form.
I recomend System.Threading.Timer
Nov 19 '08 #5
joedeene
583 512MB
...I recomend System.Threading.Timer
Yup. That's where the Timer I linked in my first post is directed to.

joedeene
Nov 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Pierke | last post by:
Hey guys out there, I really need your help, i am building up a web site, so for security reasons i need to do "some things" before the user log off, and i indeed do it. Now the matter is that...
3
by: Saurabh Sharma | last post by:
Hi How do i disable windows close button in forms in C# Regards Saurabh
7
by: thechaosengine | last post by:
Hi all, Some applications achieve a really nice look and feel in part because they have changed the bar at the very top of the form window. There appears to be a way to customise the whole bar...
2
by: Jim Heavey | last post by:
When I run a console application by bringing up a dos window and then running the exe, I noticed that when I close the dos window, this kills my application. My question is, Is there some way that...
1
by: Kiosmy | last post by:
I'm doing a chat, if one user close the windows throw X button, I need one event to do an action (delete the user for example) how I can do it. In JavaScript exist onunload event, but it is executed...
1
by: ReidarT | last post by:
On the load event of a VB.NET web-form I use format(DateTime.Now,"HH:mm") to get the time in a textfield. I want the field to show the next half hour, like 12:30, 13:00, 13:30 and so on. How can I...
2
by: Buddha Pest | last post by:
The 1st window opens the 2nd window. The 2nd window opens the 3rd window. From the 3rd window, how do I close the 3rd and 2nd windows then change the URL of the 1st window? Thanks.
1
by: enginhorzum | last post by:
Hi all i wrote a windows app with c# which consumes a web-service also written in c#. i wrote a method in web-service like this. public function Test() {...
1
by: G Gerard | last post by:
Hello I have written some help files using Html Help Workshop version 4.74.8702 I use the following code to launch the chm file Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _...
24
malav123
by: malav123 | last post by:
Hi, I want to implement such a functionality in my project that whenever user is login and if he closes the window without logout then he should be logout and i also wants...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.