Create a .OnStandby method in your vfp form:
- When the state is found
save form coordinates
move the main window to -1000, -1000
call up the application login screen with appropriate message
if you want to,
minimize the app (personally I don't like apps doing that)
restore on activity to show app still on login screen
if user login is correct
restore main window to preivous coordinates
>I misunderstood what you meant the first time, and I got really excited when I did understand because I thought it would work. Then the brick wall came...LOL I forgot that my main Form is MODAL, and when I make Form.Visible = False, it releases the block on the main thread, thereby terminating the entire application.
>
>>I mean hook into the minimize and set the main forms visible to false. I'm assuming that the form is minimized and thats why you are working in the restore. If the form isnt visible when the resore fires you dont have to worry about the data being displayed to an unautherized user. afer the log in is succesful you could set the visible back to true.
>>
>>Just a roungh idea.