I was trying to figure out the rationale behind overriding the OnLoad method instead of the Load event. (Read some interesting post about the relative merits from a performance perspective.) However, after locating the ‘How to: Raise Base Class Events in Derived Classes” section of Microsoft’s Programming Guide I came upon the “real” reason. Namely, only the base class can actually raise the event; hence the need for the OnLoad derivative that permits a derived class from invoking the event indirectly.
Advertisement
Discussion
No comments yet.