473,323 Members | 1,589 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,323 software developers and data experts.

VB.NET Application : How to know idle status

Hi all,

any one knows how to check if my vb.net application is in an idel status or not?
how can I keep my vb.net application not to go to idel status?

any suggestion?


Regards,
HK
Mar 26 '08 #1
2 6094
Plater
7,872 Expert 4TB
Attach an event handler to the Application.Idle event.
That will tell you when your application is going into idle mode.
Mar 26 '08 #2
Thanks..that worked greatly...

I inserted this in the form_load
start_idle = DateAndTime.Now
end2_idle = DateAndTime.Now
AddHandler Application.Idle, New System.EventHandler(AddressOf Application_Idle)


and created this function

Private Sub Application_Idle(ByVal sender As Object, ByVal e As EventArgs)
end_idle = DateAndTime.Now
If (end_idle.Subtract(end2_idle).Seconds.ToString > 1) Then
start_idle = DateAndTime.Now
ElseIf (end_idle.Subtract(start_idle).Minutes.ToString >= 3) Then
'MsgBox("idle is greater than 3")
start_idle = DateAndTime.Now
End If

end2_idle = DateAndTime.Now
End Sub

this will pop up a message every 3 minutes of idleness :>

thanks for the reply
Mar 28 '08 #3

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

Similar topics

19
by: Frank Rizzo | last post by:
I want to log the user out when there has been a period of inactivity in the application. The key here is inactivity of the application, not the system. I know that you can retrieve the...
1
by: Justine | last post by:
Hai All, How do we programmatically get to know weather the system is idle or not..????? Pls F1 F1 F1 :-) Thanz ....
6
by: Dave Weber | last post by:
I'm in the process of writing an open-source plugin-enabled application. I know that you can define the API in several ways, and right now it is equipped as an Interface. The gist of the...
5
by: Frank Rizzo | last post by:
Hello, I have a dozen 3rd party controls on my form. I am trying to detect when the application is idle. But even after the mouse and the keyboard are no longer moving, something is still...
1
by: Jeremy S. | last post by:
In application pools there are two property settings (amongst others): 1. Recycle Worker Process (in minutes) 2. Idle Timeout - shut down worker process after being idle for (in minutes). My...
20
by: J-T | last post by:
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business...
2
by: henk | last post by:
I have a hard time to get the idle time only from my application. (a relogin box should appear after eg 1 min, when a user switch to word and start typing for 10min, the re-login should not appear....
1
by: Rob | last post by:
How can I write the following code in VB.NET : private void Form1_Load(object sender, System.EventArgs e) { // Submit to Idle event to set controls state at idle time Application.Idle += new...
1
by: cbielins | last post by:
DB2v8.x - AIX64 what status is considered 'idle' by DB2? Connect Completed UOW Waiting I would think statuses like this would be considered 'idle' and thus forced off if you have a written...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.