Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Before
Message
De
06/06/2008 00:31:31
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Re: Before
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01321876
Message ID:
01322032
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform