Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnClose not firing
Message
From
07/01/2004 13:30:39
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00863478
Message ID:
00864773
Views:
16
>I would rather have the code encapsulated in the form that requires to do something when is being closed than leave it up to the caller. <

You're right, of course ... encapsulation is definitely the preferred way.

Probably when we first implemented the FormsHandler way of doing it, we didn't take the time to find the WndProc method, as you did. The whole idea of a FormsHandler is how we implemented this kind of functionality in our old VFP app, so I guess we just carried the idea forward. Unfortunately, with our methodology, you *do* have to remember to add the newly instantiated Form to the FormsHandler, you're screwed if you don't do that. But that's all you have to remember ... everything takes care of itself after that.

Anywho ... this has been a good discussion. Thanks!

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform