467,915 Members | 1,847 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Finding out number of subscribers to a controls DragDrop event

Hello,

Is it possible to find out how many methods are listening to a certain
event? For example, if a number of methods subscribed to a controls DragDrop
event using +=, can I find out how many methods in total are listening to the
DragDrop event of the control?

If I can't find out the exact number of methods listening to the DragDrop
event, can I somehow remove all listeners of that event at once? I tried
using m_Control.DragDrop = null, but the compiler says I'm only allowed to
use DragDrop with += or -=.

I read about GetInvocationList() but I only found examples of its usage on
custom delegates. Im not sure if/how it is applicable to a controls DragDrop
event.

Thanks for your help,
-Flack
Nov 16 '05 #1
  • viewed: 1121
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Kate | last post: by
2 posts views Thread by Ron M. Newman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.