Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aborting a form (in vfp return .f. in .INIT)
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB 8.0
OS:
Windows 7
Network:
Windows NT
Database:
Jet/Access Engine
Application:
Desktop
Divers
Thread ID:
01533071
Message ID:
01533096
Vues:
52
I'm deep in WPF at the moment so can't remember (and can't check) but will executing a .Close() in the OnLoad override do the trick ?
(can be before or after base behaviour)

>From "maintask" I "new" the form and then ".show" it (are there any other ways? :) . The code to determine if the form shoulld open or not is in ".load" (it basically checking if the user has access, but there could be other uses for this functionality).
>
>I could of course write that code in maintask, but I was hoping to encapsulate the logic in my "base" class.
>
>Thanks for caring.
>
>
>
>
>
>>>In VFP, when you return .f. in the .init routine, the form did not come up at all.
>>>
>>>What would be the "best practice" equivalent in VB.NET, preferrably without the form flashing? I'm issuing a me.close in the layout event, but that flashes.
>>>
>>>Thanks of any light you could shed on this.
>>
>>How are you instantiating the form?
>>
>>At what point do you know that you don't want to do that ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform