Adding Events To Custom Class's

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
 
C

CJ Taylor

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top