Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have quite a few custom-designed classes that need to be notified when certain things happen pertaining to them, though, I've never delved into delegates and wouldn't even know where to start. How would I be able to write/use the events like the IDE does where you define an object and have all of it's events right there in a drop down. Would simply declaring it "WithEvents" work or is it more involved?
Posted

Well I'm not sure exactly what you are attempting to do, but here's a couple of articles, which seem pretty good about basic Delegate Creation / Event Handling:

 

http://www.devarticles.com/c/a/C-Sharp/Creating-Custom-Delegates-and-Events-in-C-sharp/

http://www.csharphelp.com/archives4/archive678.html

 

http://blogs.interfacett.com/dan-wahlins-blog/2007/1/18/video-creating-custom-events-and-delegates-with-c.html

 

The last one is a video, just in case you needed something visual lol

 

I hope this helps!

 

~Derek

Check out my blog! DevPaper.NET

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...