Let’s say I have a custom control, my MyPopupMenu
It implements an event
I have another control which is a subclass of MyPopupMenu. It also wants to implement Close
MyChildPopupMenu.Close // Not allowed. The compiler says this doesn't exist.
How can both my parent and child implement a close event to clean up their respective stuff?
Create an event definition in the superclass, “Close”. In the implementation of the Close event there, do what you need to do, then RaiseEvent Close so the subclass gets it.
(Or raise the event first, then do what you need to do, whichever makes more sense.)
Of course. Thanks Kem.
My apologies for the dupe post. I got an error while posting and thought I’d lost it.