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

auto timeout for winform application

I need to have a auto timeout feature for a webform application(vb.net).
Basically, I want to close the application if the user does not have a
keyboard or mouse input after a specific period of time. Please help!

Dayne
Nov 21 '05 #1
5 6199
"Dayne" <d_**********@hotmail.com> schrieb:
I need to have a auto timeout feature for a webform application(vb.net).
Basically, I want to close the application if the user does not have a
keyboard or mouse input after a specific period of time.


There's no need to post this more than once. You already got an answer:

HOWTO track a user's idle time
<URL:http://www.codeproject.com/dll/trackuseridle.asp>

<URL:http://groups.google.de/groups?selm=...2MSFTNGP11.phx.
gbl>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
Hello Dayne,

Do you want to close the app if the user doesn't touch the App, or if the
user doesn't touch Windows?
There's a difference.

Let's say I use your app, then minimize it, and open up Excel. I type in
Excel for an hour. Should you app time out?
If not, then you need to hook the windows event. The article that Wayne
sent is appropriate.
If, on the other hand, you want to close because no one has touched your app
in an hour, then you can simply set a timer in your app and when you get
keystrokes or clicks, set the current datetime in a static location. When
your time goes off, check to see if "too long" has occured, and if so,
close.

One problem: it isn't clear if your app is ASP.NET or is a Windows forms
app. In your title, you way Winform, but in the text you say webform.

If it is a web form, you have a totally different problem.
--- Nick

"Dayne" <d_**********@hotmail.com> wrote in message
news:uY*************@TK2MSFTNGP12.phx.gbl...
I need to have a auto timeout feature for a webform application(vb.net).
Basically, I want to close the application if the user does not have a
keyboard or mouse input after a specific period of time. Please help!

Dayne

Nov 21 '05 #3
Use a javascript timer on the web client which should be reset each time a
user enters text or moves focus from one control to another, if the timer
event ever fires you can window.close()

HTH

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Dayne" <d_**********@hotmail.com> wrote in message
news:uY*************@TK2MSFTNGP12.phx.gbl...
I need to have a auto timeout feature for a webform application(vb.net).
Basically, I want to close the application if the user does not have a
keyboard or mouse input after a specific period of time. Please help!

Dayne

Nov 21 '05 #4
"Dayne" <d_**********@hotmail.com> schrieb:
I need to have a auto timeout feature for a webform application(vb.net).

Web Forms or Windows Forms?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #5
The title of the OP's post says Winform, but in the text he says WebForm

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ee**************@tk2msftngp13.phx.gbl...
"Dayne" <d_**********@hotmail.com> schrieb:
I need to have a auto timeout feature for a webform application(vb.net).

Web Forms or Windows Forms?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dayne | last post by:
I need to have a auto timeout feature for a webform application(vb.net). Basically, I want to close the application if the user does not have a keyboard or mouse input after a specific period of...
1
by: zbcong | last post by:
hello i write a simple winform app to test the NTD(no-touch deployment) feature of dot net,after deploy it to the iis server,it works well,i can invoke it from either commandline or ie browser. ...
1
by: Michelle | last post by:
Hi All, I have an ASP.NET application with a session timeout of 20 minutes - for security reasons. I have a web form in this application that I need to Auto Save every 15 minutes (in case the...
3
by: Woody Splawn | last post by:
I have been experimenting with Auto Slides and TreeViews and find them most usefull in Winforms. I know how to create a Treview and have it, for example, slide out from the left of my Winform but...
24
by: aam | last post by:
hi, im trying to figure out how i can program the mouse to automatically click on a button of a web page that i'm viewing.i do not have control over the page.i would also like to set up an...
1
by: reidarT | last post by:
I have an application (winform vb.net 2005) installed on some computers. There is a connection to an sql server on the companys server. This works OK on all machines except one, where I get the...
4
by: jgamble | last post by:
I'm working for the first time on an existing application that communicates with an SQL Server database. We've backed up the database and installed it on our own machine, and copied the ADB file...
4
by: Smithers | last post by:
Using .NET 2.0... How can I cause Windows Forms application to shut itself down after a period (say 15 minutes) of ? Specifically, I'm wanting some options for detecting that the user is somehow...
2
by: Dean Slindee | last post by:
"The timeout period elapsed prior to completion of the operation or the server is not responding". ExceptionType: System.Data.SqlClient.SqlException Method: OnError I am getting the above error...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
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.