Hi,

I have a windows app which will create objects (which are small images) but these need to be draggable. (These are components)

Now ive got it working perfectly with statically typed mouse events e.g:

Code:
button1_MouseDown
Obviously i dont know how many objects the user will create so i cant create the same event handler over and over.

How would i have a generic mouse event handler which can apply to any component the user creates?

P.S Im using C# if that is any use