cugone Posted May 18, 2008 Posted May 18, 2008 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? Quote
Fork501 Posted May 19, 2008 Posted May 19, 2008 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 Quote Check out my blog! DevPaper.NET
cugone Posted May 19, 2008 Author Posted May 19, 2008 Thanks for the links, I figured it out. :] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.