jedbartlet Posted October 23, 2004 Posted October 23, 2004 Is it possible to add extra parameters to event handlers. I want to add an id number to the event handler i defined so that i can see which object in the array has made the call. Is this possibele or are the only parameters allowed Object *sender, EventArgs *e? Any feed back appreciated. Quote
Administrators PlausiblyDamp Posted October 23, 2004 Administrators Posted October 23, 2004 You would normally create your own class and inherit it from System.EventArgs - then add your own public members. Just remember when declaring your event you need to specify a delegate with your derived class as the second parameter. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.