Note. As Dunbrook noted, this will not work on UserControl, since e is not MouseEventArgs. Also note that not all controls even give you a DoubleClick event - for example, a button will simply send you two Click events.
private void Form1_DoubleClick(object sender, EventArgs e) { MouseEventArgs me = e as MouseEventArgs; MouseButtons buttonPushed = me.Button; int xPos = me.X; int yPos = me.Y; }
Gets x, y relative to the shape.
Also has a left or right button in MouseEventArgs.
Moose
source share