• Advertisement
Sign in to follow this  

EventHandlers in Custom Classes in C#

This topic is 4791 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a way to add an event handler to a self-made class that fires off when something happens? I can't think of the example I had before but I know I was thinking of this question. I am using C#. Thanks!

Share this post


Link to post
Share on other sites
Advertisement

Have a look at the following article...

http://www.csharphelp.com/archives2/archive470.html

Shows how to use custom events and delegates

Share this post


Link to post
Share on other sites
Awesome. Thanks!! I was also wondering though...although it has more to do with DirectX. I was wondering if there was anyway to find an active class in memory. More specifically if a Device exists in memory such as a DirectSound device. Or even a class in general...say like a class that creates the DirectSound device...

Thanks again!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement