Custom events on Class

Hi, I have created an event definition on xxx Class with return value as boolean. How I will raise event on the class that it needs to return a boolean value ? Also, how I will declare the event with addhandler command that it needs to return a value ? I want to implement an event like CancelClose event.

The Classes chapter in User Guide Book 1 covers custom event handlers.

Essentially, your base class calls the event definitions (using RaiseEvent or by just their name). Subclasses of your base class will show your event definitions in the Event Handler window for the user to implement. Or you can use AddHandler as you normally would with any other control to implement the event handler.