Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Manager suggestion
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01330061
Message ID:
01330516
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform