473,379 Members | 1,191 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.

VB6 Appl IDLE for sometime

Mohan Krishna
115 100+
Hi Everyone!

I am developing a project in VB6 and Access as backend.

I need an idea from you that if the application is idle for some time then it should ask the LOGIN Password.
Just get an idea of Screensaver in Windows.

Thank You !
Nov 20 '07 #1
10 1905
CyberSoftHari
487 Expert 256MB
You can use a timer control, Idle Flag, MouseMove and KeyPress events.
Set the time interval of timer and validate the idle flag there and update flag to True.
Update the
Expand|Select|Wrap|Line Numbers
  1. Idleflag = False
in MouseMove and KeyPress events.
Nov 20 '07 #2
Mohan Krishna
115 100+
You can use a timer control, Idle Flag, MouseMove and Keypress events.
Set ...
Thank you for responding.

Where shall I keep those events - whether in Main Form or else?
Shall I take a separate Timer Control for that?

Thank you once again!
Nov 20 '07 #3
CyberSoftHari
487 Expert 256MB
Let me clear one thing.
You want application idle or system idle?
If app idle, you have to use the timer control in main form and all other events in all forms.
Nov 22 '07 #4
lotus18
866 512MB
Hi Mohan Krishna

What a great idea. Maybe I can apply this with some of my projects.

Good Luck : )
Nov 22 '07 #5
Mohan Krishna
115 100+
Hi Mohan Krishna

What a great idea. Maybe I can apply this with some of my projects.

Good Luck : )
Thank You Hari !

Thank You Lotus18 !

Lotus18, Please give me an idea about the code when you do. And, I do the same!

ThanQ
Nov 22 '07 #6
lotus18
866 512MB
Thank You Hari !

Thank You Lotus18 !

Lotus18, Please give me an idea about the code when you do. And, I do the same!

ThanQ
OK. Let's just share our knowledge. : )

ALL THE BEST MOHAN!!!
Nov 22 '07 #7
Killer42
8,435 Expert 8TB
I don't think it will be as simple as setting a flag. Because the flag might have been cleared a tenth of a second before the timer fired. I think you would need to track the actual time that the last activity occured. Then in your timer you can test how long it has been.
Nov 23 '07 #8
CyberSoftHari
487 Expert 256MB
For App Idle
------------------
1.Set the time interval to your limit of popup the Login screen.
2.Make all form key preview = true.
3.Make Public bolIdleFlag = false in modules.
4.As well in all keypress and mouse move events and enable the timer control.
5.In timer_timer() event write code to popup the login screen.
This is the point I try to describe and there may be some better solutions.
Nov 23 '07 #9
Killer42
8,435 Expert 8TB
Can we just get something straight, here? I've been correcting a number of these posts, but the word is not "ideal". It is "idle". There's a difference.
Nov 24 '07 #10
CyberSoftHari
487 Expert 256MB
Sorry, it’s "Idle". Ok, will the above points are useful?
Nov 24 '07 #11

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

Similar topics

16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
1
by: Moosebumps | last post by:
So say I am working on two separate .py files in IDLE that are part of the same program. Does anyone have problems where when you modify one file, and then run the other, the changes you made in...
1
by: dbrown2 | last post by:
I typically use IDLE for editing and debug. On Windows at least, IDLE and the standard turtle graphics module do not mix. I think both use Tkinter. For now I use IPython and Jedit when using...
2
by: Otto T Hyvarinen | last post by:
We have this big Python program, developed by another institute, that uses C extensions a lot. One of those C methods does the segmentation fault when run from the command line, but _not_ when run...
0
by: Pola | last post by:
Please Help I am using VC++ in win 2000 In my appl (Win32 project) I want to control the close operation of the apl (for example if somebody will try to close appl from the "Windows Task Manager")...
2
by: Chien Lau | last post by:
I have a form class that acts as a top level window. The user can open and close any number of these windows throughout the lifetime of the application. In the OnLoad, I have: ...
6
by: Alpha | last post by:
Hi, I'm fixing a bug in an application and need to step thru the appl to find where it's occuring. The main project includs 33 other projects each having a .resx file in it. When I step through it...
1
by: tin | last post by:
hi, i need to cache data in memory for a web appl, which takes up to 1 GB ram. and i don't want it to load everytime the appl restart (changing other code files/replacing other dll etc). and i...
5
by: UdayKumarB | last post by:
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.
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: 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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.