I have a Visual Basic program running in the
background that I can not allow the user to unload before he logs off.
Before I put code in the queryunload method the user could keep a Notepad
document open and log off. The operating system would close my background
program and invite the user to Cancel the logging off process when it
reached the Notepad document.
In my queryunload method now I give the user 60 seconds to save his work
before I force a log off using Randy Birch's code at
Unfortunately, when one tries to end the program from task manager (or by
logging off) after ten seconds the operating system
gets impatient and says the program is not responding inviting the user to
Cancel or End the program.
Is there a way to increase this limit of 10 seconds? Or, does a better
Seductive math problems for the modern mind:
Tools for better schools:
What I read:
Mathematical ulterior motives: