Just out of curiosity, what is the issue with having public delegates?
What motil is suggesting should work and might be the best way to go, but the problem in your code is that you have declared the delegate inside the class.
That way it isn't accessible when hooking the event from the outside.
The suggestion by motil is that instead of a delegate, you use a generic EventHandler as event handler that is publicly accessible already.




Reply With Quote