Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Before
Message
General information
Forum:
ASP.NET
Category:
Forms
Title:
Re: Before
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01321876
Message ID:
01321889
Views:
14
>I have created an IdleTime class that returns how much time the system has been Idle. I am using this class to determine if the user has stepped away from the PC (for 15 minutes) and failed to exit my application (because the data is sensitive). If so, I aotomatically minimize the application. So far I have this working beautifully. My problem is restoring the window. At this point, I can't be sure the person using the application, is the same person who initially logged in (meaning someone could have walked up to this person's PC and started using it). So what I need to do is catch the "Restore Window" event BEFORE it actually changes the window state. At this point I want to display (which I already have written) a "Verify Login" form, and if the person logs in properly again, allow the "Window Restore" to continue, otherwise I want to CANCEL/DISALLOW the window restore.
>
>Anyone know how I can do this? I tried the RESIZE Event, but it's to late at that point because the application has already restored itself and is displaying any data that the user left on his screen (which is not good). I also tryied trapping the window messages using the WNDPROC Event...I couldn't get that to work either...

Isn't there a ResizeBegin event? Maybe that would work. Or maybe, as an alternative, use WINEXIT.SCR ?
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform