If I have, let say, 3 event handlers,all pointing to the same method.
is there a way to find out which on invoked the method from within the method?
for example:
i have 3 event handlers
thanks in advance
is there a way to find out which on invoked the method from within the method?
for example:
i have 3 event handlers
Code:
Grid1.MouseMove += new EventHandler(bla)
Grid1.MouseDown += new EventHandler(bla)
Grid1.MouseUp += new EventHandler(bla)
private void bla(object sender,EventArgs e)
{
// what should I write here to find out if it was a mouse move , a mouse down
// or a mouse up event.
}
Comment