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:
01533280
Vues:
42
>Hmm. Worked for me in C# and should be the same in VB since wer'e just dealing with the same class.
 Form f = new Form();
>            f.Show();
and
protected override void OnLoad(EventArgs e)
>        {
>            this.Close();
>            base.OnLoad(e);
>         }
Not convinced that it's good practice but it does work....
>

Well it did not work for me. But unless I don't understand something, the .load is invoked in .new() so assuming the .close() has effect, f would not be instantiated and you get an exception when f.show() is executed no?

Thanks.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform