Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Before
Message
From
06/06/2008 00:31:31
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
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:
01322032
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform