Adding Events To Custom Class's

  • Thread starter Thread starter WStoreyII
  • Start date Start date
W

WStoreyII

I am making a custom tree control

I want to make a sub that will react to the nodeclick and add the text of
the node to a status bar in the treecontrol how do i do this inside of the
class code?

WStoreyII
 
So you want everyone to know that this happened?

If so.

Public Event MyEvent (sender as object, e as eventArgs)

is the classic way to go. Otherwise you can derive your own event args from
system.eventargs to give more meaningful information to your event
subscribers(sinks, whatever you want to call it).
 
Back
Top