Plus, I may be mistaken but I think the signature of the event handling
routine must match the delegate precisely - it can't just use the basic
EventArgs class as it's second parameter if it's going to handle (for
example) the MouseDown event (which requires a subclass of MouseEventArgs or
something like that).
>> All custom event arguements must inherit from the EventArgs class,
>
> No - It's only a convention. Events can have any delegate type whatsoever.
Zoodor - 24 Mar 2006 16:00 GMT
> Plus, I may be mistaken but I think the signature of the event handling
> routine must match the delegate precisely - it can't just use the basic
> EventArgs class as it's second parameter if it's going to handle (for
> example) the MouseDown event (which requires a subclass of MouseEventArgs or
> something like that).
I may be wrong, but isn't this allowed in dot net 2.0?