If I understand your issue correctly -- you don't /have/ to subscribe to
inherited events like that.
Microsoft recommends you just override the base class' event handlers.
Very OOP friendly.
::
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.onenter.aspx
::
The *OnEnter* method also allows derived classes to handle the event
without attaching a delegate. This is the preferred technique for
handling the event in a derived class.
*Notes to Inheritors *When overriding *OnEnter* in a derived class,
be sure to call the base class's *OnEnter* method so that registered
delegates receive the event.
Franklin Gray wrote:
Sorry all for my outburst. I've never had so much pain in going to the
next version before except when moving from COM to dotnet and that was
expected. At least then the IDE didn't have much problems. It really
buggs me that I have to put events into my base form that I inherit from
and catch the events in the inheriting form. Somewhere I think MS forgot
what inheritance is all about.
Thanks for the links.
Message from Sébastien Lorion
<[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM received on 07/28/2006
01:55 PM
07/28/2006 01:55 PM
Sébastien Lorion <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM
Please respond to "Discussion of advanced .NET topics."
<[email protected]>
Sent by "Discussion of advanced .NET topics."
<[email protected]>
To: [email protected]
cc:
Subject: Re: [ADVANCED-DOTNET] VS2005 s#cks!!!!!!!!!!!!!
Humm, consider yourself lucky to not have worked with VS 2005 BETA 2.
RTM is rock stable compared to it ! Btw, BETA 1 was mostly fine, so
wtf happened between ?
Sébastien
On 7/28/06, Frans Bouma <[EMAIL PROTECTED]> wrote:
http://www.windowsforms.net/articles/debuggingwsod.aspx
White Screen of .... 'Darn' ??? :) haha :)
To Franklin: yes it sucks. MS has released some patches, call
PSS for the patches. Yes that sucks even more, we all ask MS
year after year to release patches early, but that's not the case,
because if they'd do that the world would obvious come to an
end... </sarcasm>
FB
===================================
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com