I know that in C#, there are several built in events that pass a parameter (\"Cancel\") which if set to true will stop further execution in the object that raised the eve
You have to wait the call that raise the event and then check the flag in your EventArgs (in particular CancelEventArgs).