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

App lockup

Hi guys
A have an application for proccessing some sensitive data, which is most of
the time displayed on app windows.
I want after some time of inactivity the application to become locked - its
windows to be hiden or something and a form to be displayed, so the user can
enter his username and password.
When starting this app, users have to login and I automaticly logout them
when they close the app.
But when the application is locked, I don't want to logout users, because
the will lose any changes done.
I only want to hide the app windows.

What I don't know how to track the user inactivity and how to hide all
currently opened form of my app (the user may have couple of forms opened).

TIA

P.S. By inactivity I mean that the user don't move the mouse or use the
keyboard (kind of what windows screen saver tracks), because the user may
just look at the application forms without intecating with my app, but work
with something else.
Nov 21 '05 #1
2 1020

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
Hi guys
P.S. By inactivity I mean that the user don't move the mouse or use the
keyboard (kind of what windows screen saver tracks), because the user may
just look at the application forms without intecating with my app, but work with something else.

You may be able to do this using the timer control.
Look at the events associated with the forms like keypress and mouseMove,
etc, to disable-then enable the timer - then when the timer's tick event
happens - do your thing - hide forms and show the login form which will in
turn show the forms being used and enable the timer again.
There may be other ways - but this is what comes to mind first.
Hal
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004
Nov 21 '05 #2
I though about this, but this will track the activity only in this app, not
system wide.
Like I described, the user may just have an open form from my app and look
at it from time to time while working with other apps.
So it must be something system wide, maybe some Windows API to check the
inactivity of user.
"Hal Rosser" <hm******@bellsouth.net> wrote in message
news:R1************@bignews3.bellsouth.net...

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
Hi guys
P.S. By inactivity I mean that the user don't move the mouse or use the
keyboard (kind of what windows screen saver tracks), because the user may just look at the application forms without intecating with my app, but

work
with something else.

You may be able to do this using the timer control.
Look at the events associated with the forms like keypress and mouseMove,
etc, to disable-then enable the timer - then when the timer's tick event
happens - do your thing - hide forms and show the login form which will in
turn show the forms being used and enable the timer again.
There may be other ways - but this is what comes to mind first.
Hal
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004

Nov 21 '05 #3

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

Similar topics

1
by: Lucas | last post by:
I have written a COM dll using vc++ and ATL. I am using this dll from an application written in VB. When the VB application finishes with the object it sets the object = nothing. Somewhere...
3
by: Vanchau Nguyen | last post by:
Hi all, Hoping someone can help us with this strange Innodb problem. At about 5:15 AM 2/2/04 (this morning), our slave server stopped accepting connections. The machine was pingable, but you...
3
by: ACP | last post by:
Hi all, Have a situation that my company has never run across before. Client is running NT4 for the domain server, using terminal services 2000 and running an application with a SQL Server...
2
by: Patrick Stinson | last post by:
I've added an extra thread to my application read from an alsa midi device, and when I compile with any optimizations (gcc -O3 or gcc -O2) the application "freezes" (meaning I don't know what code...
3
by: Tony Epton | last post by:
Got a site where we are still running the front end and back end on an older machine under access 97 plus a new machine using XP as the front end. Only installed the XP version yesterday. ...
1
by: Mark | last post by:
Hi, My application has a location that the debugger can't step through, and that locks the program up when running outside the debugger. I have tried moving code blocks but haven't been able...
0
by: Mike Szanto | last post by:
This post is intended to provide a possible solution to a problem with the Internet Explorer TreeView WebControl where it locks up or freezes when you try to open a treeview node. I experienced...
0
by: Ken Varn | last post by:
My Asp application is calling a generic logging assembly that acquires the current process as part of its logging process. The managed C++ assembly makes a call to...
1
by: Damien | last post by:
Hi guys, I'm getting a bit of a wierd one with my ASP.NET application. I'm running under framework 1.1, which is a shame, because the following KB articles looked interesting initially: ...
17
by: OlafMeding | last post by:
Below are 2 files that isolate the problem. Note, both programs hang (stop responding) with hyper-threading turned on (a BIOS setting), but work as expected with hyper-threading turned off. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.