Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Manager suggestion
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01330061
Message ID:
01330516
Vues:
24
Brian,

>A colleague of mine came to me with a problem he was having today.
>In one of his forms he performs some checks to see if the form should run. If the form shouldn’t be run he closes the form. This all takes place in the New() method of the form.
>The form itself was called from a click event of the main forms menu using the formmanager’s Show method. He did it using the method shown in the quickstart and example app. The error he was throwing was due to the fact that the doesn’t check for isDisposed before it calls the forms show method. Granted he could have instantiated the form first and then checked for isDisposed befor calling the formmanager’s show method but I was wondering if it wouldn’t be a better idea to check in the formmanager.
>This problem doesn’t show up often but can be confusing when it does.

Are you saying you would like the Form Manager’s Show() method to check IsDisposed before calling the Show() method on the form, and not call it if IsDisposed is true?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform