3 types derived from MouseEventArgs
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
6public class DataGridViewCellMouseEventArgs : MouseEventArgs, IDataGridViewCellEventArgs
System\Windows\Forms\Controls\TreeView\TreeNodeMouseClickEventArgs.cs (1)
10public class TreeNodeMouseClickEventArgs : MouseEventArgs
System\Windows\Forms\Input\HandledMouseEventArgs.cs (1)
8public class HandledMouseEventArgs : MouseEventArgs
444 instantiations of MouseEventArgs
System.Windows.Forms (62)
System\Windows\Forms\ActiveX\AxHost.cs (3)
3891base.OnMouseMove(new MouseEventArgs((MouseButtons)(button << 20), 1, x, y, 0)); 3909base.OnMouseUp(new MouseEventArgs((MouseButtons)(button << 20), 1, x, y, 0)); 3927base.OnMouseDown(new MouseEventArgs((MouseButtons)(button << 20), 1, x, y, 0));
System\Windows\Forms\Control.cs (7)
11400OnMouseDown(new MouseEventArgs(button, clicks, PARAM.ToPoint(m.LParamInternal))); 11521OnMouseMove(new MouseEventArgs(MouseButtons, 0, PARAM.ToPoint(m.LParamInternal))); 11558OnClick(new MouseEventArgs(button, clicks, location)); 11559OnMouseClick(new MouseEventArgs(button, clicks, location)); 11563OnDoubleClick(new MouseEventArgs(button, 2, location)); 11564OnMouseDoubleClick(new MouseEventArgs(button, 2, location)); 11568OnMouseUp(new MouseEventArgs(button, clicks, location));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (14)
1592OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptlc.X, Ptlc.Y, 0)); 1609OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, Ptmc.X, Ptmc.Y, 0)); 1626OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Ptrc.X, Ptrc.Y, 0)); 1640OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptl.X, Ptl.Y, 0)); 1656OnClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal))); 1657OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal))); 1672OnMouseUp(new MouseEventArgs(MouseButtons.Left, 1, EditToComboboxMapping(m))); 1685OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, P.X, P.Y, 0)); 1702OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Pt.X, Pt.Y, 0)); 1711OnMouseUp(new MouseEventArgs(MouseButtons.Middle, 1, PARAM.ToPoint(m.LParamInternal))); 1722OnMouseUp(new MouseEventArgs(MouseButtons.Right, 1, ptRBtnUp.X, ptRBtnUp.Y, 0)); 1744OnMouseMove(new MouseEventArgs(MouseButtons, 0, point.X, point.Y, 0)); 3710OnClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal))); 3711OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal)));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
5755MouseEventArgs me = new( 5792me = new MouseEventArgs( 5852me = new MouseEventArgs( 5922MouseEventArgs meTmp = new( 16348MouseEventArgs meTmp = new(e.Button, 2, e.X, e.Y, e.Delta);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
2426OnClick(new MouseEventArgs(MouseButtons.Left, 1, point)); 2427OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, point)); 2437OnDoubleClick(new MouseEventArgs(MouseButtons.Left, 2, point)); 2438OnMouseDoubleClick(new MouseEventArgs(MouseButtons.Left, 2, point));
System\Windows\Forms\Controls\ListView\ListView.cs (6)
5889OnMouseDown(new MouseEventArgs(button, clicks, point)); 6652OnMouseClick(new MouseEventArgs(button, 1, pos.X, pos.Y, 0)); 6657OnMouseUp(new MouseEventArgs(button, 1, pos.X, pos.Y, 0)); 6982OnMouseDoubleClick(new MouseEventArgs(_downButton, 2, PARAM.ToPoint(m.LParamInternal))); 6987OnMouseUp(new MouseEventArgs(_downButton, 1, PARAM.ToPoint(m.LParamInternal))); 7013OnMouseUp(new MouseEventArgs(_downButton, 1, PARAM.ToPoint(m.LParamInternal)));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2402OnMouseMove(new MouseEventArgs(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.Delta)); 2418OnMouseDown(new MouseEventArgs(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.Delta));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3333mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3389mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3433mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
System\Windows\Forms\Controls\TreeView\TreeView.cs (10)
2692OnMouseDown(new MouseEventArgs(button, clicks, PARAM.ToPoint(m.LParamInternal))); 3049OnClick(new MouseEventArgs(button, 1, pos.X, pos.Y, 0)); 3050OnMouseClick(new MouseEventArgs(button, 1, pos.X, pos.Y, 0)); 3078OnMouseUp(new MouseEventArgs(button, 1, pos.X, pos.Y, 0)); 3282OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal))); 3326OnClick(new MouseEventArgs(_downButton, 1, point)); 3327OnMouseClick(new MouseEventArgs(_downButton, 1, point)); 3336OnDoubleClick(new MouseEventArgs(_downButton, 2, point)); 3337OnMouseDoubleClick(new MouseEventArgs(_downButton, 2, point)); 3344OnMouseUp(new MouseEventArgs(_downButton, 1, point));
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
911return new MouseEventArgs(e.Button, e.Clicks, point.X, point.Y, e.Delta);
System\Windows\Forms\NotifyIcon.cs (7)
689OnDoubleClick(new MouseEventArgs(button, 2, 0, 0, 0)); 690OnMouseDoubleClick(new MouseEventArgs(button, 2, 0, 0, 0)); 694OnMouseDown(new MouseEventArgs(button, clicks, 0, 0, 0)); 702OnMouseMove(new MouseEventArgs(Control.MouseButtons, 0, 0, 0, 0)); 710OnMouseUp(new MouseEventArgs(button, 0, 0, 0, 0)); 714OnClick(new MouseEventArgs(button, 0, 0, 0, 0)); 715OnMouseClick(new MouseEventArgs(button, 0, 0, 0, 0));
System.Windows.Forms.Tests (381)
CheckedListBoxTests.cs (1)
790MouseEventArgs eventArgs = new(MouseButtons.Left, 1, 0, 0, 0);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
57button.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonBaseTests.cs (99)
5544control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5648control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5729control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5813control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5918control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6008control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6017control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6096yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 6097yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 6098yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 6099yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 6100yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 6101yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 6102yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 6103yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 6104yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) }; 6145yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6146yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 1 }; 6147yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 6148yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 1 }; 6149yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 6150yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 1 }; 6151yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 6152yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 1 }; 6153yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 6509yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 6510yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 6511yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 6512yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 6513yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 6514yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 6515yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 6516yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 6517yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) }; 6518yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0) }; 6519yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0) }; 6563control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6594control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6623yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6624yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 0 }; 6625yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 6626yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 0 }; 6627yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 6628yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 0 }; 6629yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 6630yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 0 }; 6631yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 6632yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0), 0 }; 6633yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0), 0 }; 6687yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6688yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 0 }; 6689yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 6690yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 0 }; 6691yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 6692yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 0 }; 6693yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 6694yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 0 }; 6695yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 6696yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0), 1 }; 6697yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0), 1 }; 6698yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, -1, 0), 1 }; 6699yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 1 }; 6713control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6754yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6755yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 1 }; 6756yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 1 }; 6757yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 1 }; 6758yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 1 }; 6759yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 1 }; 6760yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 1 }; 6761yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 1 }; 6762yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 1 }; 6763yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0), 0 }; 6764yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0), 0 }; 6765yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, -1, 0), 0 }; 6766yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 0 }; 6780control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6828yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 6829yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 6830yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 6831yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 7642control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7673control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7705control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7791control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7833control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7876control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7967control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8003control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8040control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8136control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8183control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8231control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8472control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8508control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8545control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8641control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8688control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8736control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonTests.cs (33)
1059control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 2250yield return new object[] { enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 2251yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 2252yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 2253yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 2254yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 2255yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 2256yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 2257yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 2258yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) }; 2295yield return new object[] { enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 2296yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 1 }; 2297yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 2298yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 1 }; 2299yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 2300yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 1 }; 2301yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 2302yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 1 }; 2303yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 2643yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 2644yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 2645yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 2646yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 2695yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4), false }; 2696yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), true }; 2697yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), false }; 2698yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4), false }; 2714control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 2799yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4), 0 }; 2800yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), expectedCallCount }; 2801yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), 0 }; 2802yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4), 0 }; 2818control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ComboBoxTests.cs (1)
2777public void OnMouseDown(Point p) => base.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, p.X, p.Y, 0));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (5)
11yield return new object[] { -1, -1, -1, -1, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 12yield return new object[] { 0, 0, 0, 0, new MouseEventArgs((MouseButtons)1, 0, 0, 0, 0) }; 13yield return new object[] { 1, 2, 3, 4, new MouseEventArgs((MouseButtons)3, -1, -1, -1, -2) }; 34Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellMouseEventArgs(-2, 0, 1, 2, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4))); 41Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellMouseEventArgs(0, -2, 1, 2, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellTests.cs (38)
5497yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5498yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5499yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5500yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5501yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5502yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5503yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5504yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5505yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5506yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5507yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5508yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5509yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5510yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5511yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5512yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5513yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5514yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5530yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5531yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5532yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5533yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5534yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5535yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5536yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5537yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5538yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5539yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5540yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5541yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5542yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5543yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5544yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5545yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5546yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5547yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 6475cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new MouseEventArgs(MouseButtons.Left, 1, 10, 10, 0))); 6483cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new MouseEventArgs(MouseButtons.Left, 1, 10, 10, 0)));
System\Windows\Forms\DataGridViewHeaderCellTests.cs (115)
3811yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3813yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3814yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3816yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3817yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3819yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3820yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3822yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3823yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3825yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3826yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3828yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3844yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3845yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3846yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3847yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3848yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3849yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3850yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3851yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3852yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3853yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3854yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3855yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3856yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3857yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3858yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3859yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3860yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3861yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3899yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3900yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3901yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3902yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3903yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3904yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4039cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4107yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4108yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4109yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4110yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4111yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4112yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4113yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4114yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4115yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4116yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4117yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4118yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4119yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4120yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4121yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4122yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4123yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4124yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4140yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4141yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4142yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4143yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4144yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4145yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4146yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4147yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4148yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4149yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4150yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4151yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4152yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4153yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal }; 4154yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4155yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4156yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4159yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal }; 4213DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)); 4398cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4428cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4447yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4448yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4449yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4450yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4451yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4452yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4453yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4454yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4455yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4456yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4457yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4458yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4459yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4460yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4461yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4462yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4463yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4467yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4512DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)); 4522yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4523yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4524yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4525yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4526yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4527yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4528yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4529yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4530yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4531yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4532yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4533yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4534yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4535yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4536yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4537yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4538yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4541yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal }; 4569cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4596DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0));
System\Windows\Forms\DataGridViewTests.cs (8)
3743DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3748args = new(0, 1, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3770DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0)); 3775args = new(0, 1, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0)); 3822DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3827args = new(1, -1, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3848DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0)); 3853args = new(1, -1, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0));
System\Windows\Forms\DateTimePickerTests.cs (4)
573control.OnMouseClick(new(MouseButtons.Left, 1, 0, 0, 0)); 577control.OnMouseClick(new(MouseButtons.Left, 1, 0, 0, 0)); 594control.OnMouseDoubleClick(new(MouseButtons.Left, 1, 0, 0, 0)); 598control.OnMouseDoubleClick(new(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\MouseEventArgsTests.cs (1)
17MouseEventArgs e = new(button, clicks, x, y, delta);
System\Windows\Forms\PropertyGridTests.cs (18)
3701yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), false }; 3702yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), true }; 3703yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), false }; 3704yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), true }; 3705yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), false }; 3706yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), true }; 3707yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), false }; 3708yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), true }; 3709yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), false }; 3802yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 3803yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 3804yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 3805yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 3806yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 3807yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 3808yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 3809yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 3810yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) };
System\Windows\Forms\RadioButtonTests.cs (14)
1048yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 1049yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 1050yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 1051yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 1101yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4), false }; 1102yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), expectedIsHandleCreated }; 1103yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), false }; 1104yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4), false }; 1120control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 1204yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 1205yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 1206yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 1207yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 1223control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ScrollBarTests.cs (1)
2478MouseEventArgs eventArgs = new(MouseButtons.Left, 0, 0, 0, delta);
System\Windows\Forms\SplitterTests.cs (6)
1955yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 2, 3, 4) }; 1956yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 1957yield return new object[] { new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 1997yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 2, 3, 4), false }; 1998yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), true }; 1999yield return new object[] { new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), false };
System\Windows\Forms\ToolStripControlHostTests.cs (3)
4083c.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 4095c.OnMouseMove(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 4098c.OnMouseUp(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ToolStripItemTests.cs (5)
7738owner.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 7776parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 7794parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 14451owner.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 14540parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\ToolStripTests.cs (1)
5831toolStrip.OnMouseMove(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\UpDownBaseTests.cs (9)
2002yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 2003yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 2004yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 2005yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 2006yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 2007yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 2008yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 2009yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 2010yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) };
TextBoxBaseTests.cs (9)
5585yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 5586yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 5587yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 5588yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 5589yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 5590yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 5591yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 5592yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 5593yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) };
TrackBarTests.cs (9)
2540yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 2541yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 2542yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 2543yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 2544yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 2545yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 2546yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 2547yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 2548yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) };
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
155new(MouseButtons.Left, 1, 2, 3, 4),
333 references to MouseEventArgs
System.Windows.Forms (132)
System\Windows\Forms\Control.cs (7)
5040protected void RaiseMouseEvent(object key, MouseEventArgs e) 7713protected virtual void OnMouseDoubleClick(MouseEventArgs e) 7722protected virtual void OnMouseClick(MouseEventArgs e) 7740protected virtual void OnMouseDown(MouseEventArgs e) 7802protected virtual void OnMouseMove(MouseEventArgs e) 7811protected virtual void OnMouseUp(MouseEventArgs e) 7820protected virtual void OnMouseWheel(MouseEventArgs e)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
218protected override void OnMouseUp(MouseEventArgs mevent)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
867protected override void OnMouseMove(MouseEventArgs mevent) 898protected override void OnMouseDown(MouseEventArgs mevent) 915protected override void OnMouseUp(MouseEventArgs mevent)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
485protected override void OnMouseUp(MouseEventArgs mevent)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
467protected override void OnMouseUp(MouseEventArgs mevent)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1783protected override void OnMouseDown(MouseEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (28)
3642private bool ColumnRelocationTarget(MouseEventArgs e, HitTestInfo hti, out int previousColumnIndex) 5737private void EditingControls_CommonMouseEventHandler(object? sender, MouseEventArgs e, DataGridViewMouseEvent dgvme) 5755MouseEventArgs me = new( 5922MouseEventArgs meTmp = new( 5954if (e is MouseEventArgs me) 5964if (e is MouseEventArgs me) 5970private void EditingControls_MouseClick(object? sender, MouseEventArgs e) 5976private void EditingControls_MouseDoubleClick(object? sender, MouseEventArgs e) 5982private void EditingControls_MouseDown(object? sender, MouseEventArgs e) 6030private void EditingControls_MouseMove(object? sender, MouseEventArgs e) 6036private void EditingControls_MouseUp(object? sender, MouseEventArgs e) 6042private void EndColumnHeadersResize(MouseEventArgs e) 6065private void EndColumnRelocation(MouseEventArgs e, HitTestInfo hti) 6099private void EndColumnResize(MouseEventArgs e) 6286private void EndRowHeadersResize(MouseEventArgs e) 6319private void EndRowResize(MouseEventArgs e) 10429private void MoveColumnHeadersOrRowResize(MouseEventArgs e) 10490private void MoveColumnRelocation(MouseEventArgs e, HitTestInfo hti) 14932if (e is MouseEventArgs me) 15843protected override void OnMouseClick(MouseEventArgs e) 15934protected override void OnMouseDoubleClick(MouseEventArgs e) 16075protected override void OnMouseDown(MouseEventArgs e) 16168protected override void OnMouseMove(MouseEventArgs e) 16325protected override void OnMouseUp(MouseEventArgs e) 16348MouseEventArgs meTmp = new(e.Button, 2, e.X, e.Y, e.Delta); 16433protected override void OnMouseWheel(MouseEventArgs e) 16629internal void OnMouseWheelInternal(MouseEventArgs e) 29138private void UpdateMouseEnteredCell(HitTestInfo? hti, MouseEventArgs? e)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
13MouseEventArgs? e)
System\Windows\Forms\Controls\DataGridView\DataGridViewElement.cs (1)
103protected void RaiseMouseWheel(MouseEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
240protected override void OnMouseWheel(MouseEventArgs e)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
832protected override void OnMouseDown(MouseEventArgs e) 861protected override void OnMouseUp(MouseEventArgs e) 894protected override void OnMouseMove(MouseEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (7)
2396private void OnChildMouseMove(object? sender, MouseEventArgs e) 2411private void OnChildMouseDown(object? sender, MouseEventArgs e) 2535internal void OnGridViewMouseWheel(MouseEventArgs e) => OnMouseWheel(e); 2767protected override void OnMouseDown(MouseEventArgs me) 2782protected override void OnMouseMove(MouseEventArgs me) 2811protected override void OnMouseUp(MouseEventArgs me) 4098private bool ShouldForwardChildMouseMessage(Control? child, MouseEventArgs e, ref Point point)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (2)
51protected override void OnMouseUp(MouseEventArgs e) 59protected override void OnMouseDown(MouseEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
2251private void OnListMouseUp(object? sender, MouseEventArgs me) 2568private void OnEditMouseDown(object? sender, MouseEventArgs e) 2948protected override void OnMouseDown(MouseEventArgs e) 3015protected override void OnMouseMove(MouseEventArgs e) 3107protected override void OnMouseUp(MouseEventArgs e) => CancelSplitterMove(); 3109protected override void OnMouseWheel(MouseEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (3)
390protected override void OnMouseDown(MouseEventArgs e) 413protected override void OnMouseMove(MouseEventArgs e) 490protected override void OnMouseUp(MouseEventArgs e)
System\Windows\Forms\Controls\Splitter\Splitter.cs (3)
810protected override void OnMouseDown(MouseEventArgs e) 819protected override void OnMouseMove(MouseEventArgs e) 833protected override void OnMouseUp(MouseEventArgs e)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2078protected override void OnMouseDown(MouseEventArgs e)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
660protected override void OnMouseDown(MouseEventArgs e)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1470protected override void OnMouseUp(MouseEventArgs mevent)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3310protected override void OnMouseDown(MouseEventArgs mea) 3348protected override void OnMouseMove(MouseEventArgs mea) 3423protected override void OnMouseUp(MouseEventArgs mea)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
518private void HandleMouseDown(object? sender, MouseEventArgs e) 542private void HandleMouseMove(object? sender, MouseEventArgs e) 548private void HandleMouseUp(object? sender, MouseEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1208protected override void OnMouseUp(MouseEventArgs mea)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
129protected override void OnMouseDown(MouseEventArgs e) 150protected override void OnMouseUp(MouseEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (3)
118protected override void OnMouseDown(MouseEventArgs mea) 124protected override void OnMouseMove(MouseEventArgs mea) 213protected override void OnMouseUp(MouseEventArgs mea)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (10)
2302HandleMouseMove((MouseEventArgs)e); 2308HandleMouseUp((MouseEventArgs)e); 2311HandleMouseDown((MouseEventArgs)e); 2500private void HandleMouseMove(MouseEventArgs mea) 2548private void HandleMouseDown(MouseEventArgs e) 2563private void HandleMouseUp(MouseEventArgs e) 2845protected virtual void OnMouseMove(MouseEventArgs mea) 2868protected virtual void OnMouseDown(MouseEventArgs e) 2875protected virtual void OnMouseUp(MouseEventArgs e) 3085internal void RaiseMouseEvent(object key, MouseEventArgs e) => ((MouseEventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
842protected override void OnMouseDown(MouseEventArgs e) 848protected override void OnMouseUp(MouseEventArgs e) 854private void OnMouseButtonStateChange(MouseEventArgs e, bool isMouseDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (2)
79protected override void OnMouseDown(MouseEventArgs e) 91protected override void OnMouseUp(MouseEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
419protected override void OnMouseDown(MouseEventArgs e) 439protected override void OnMouseUp(MouseEventArgs e)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
911protected override void OnMouseWheel(MouseEventArgs e)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (6)
679protected override void OnMouseDown(MouseEventArgs e) 692protected override void OnMouseUp(MouseEventArgs mevent) 720protected override void OnMouseWheel(MouseEventArgs e) 900/// Create a new <see cref="MouseEventArgs"/> with the points translated from the <paramref name="child"/> 903private MouseEventArgs TranslateMouseEvent(Control child, MouseEventArgs e)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (5)
57private void BeginButtonPress(MouseEventArgs e) 110protected override void OnMouseDown(MouseEventArgs e) 135protected override void OnMouseMove(MouseEventArgs e) 211protected override void OnMouseUp(MouseEventArgs e) 223MouseEventArgs me = _parent.TranslateMouseEvent(this, e);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (3)
42protected override void OnMouseDown(MouseEventArgs e) 61protected override void OnMouseUp(MouseEventArgs e) 63MouseEventArgs me = _parent.TranslateMouseEvent(this, e);
System\Windows\Forms\Input\MouseEventArgs.cs (2)
15/// Initializes a new instance of the <see cref="MouseEventArgs"/> class. 27/// Initializes a new instance of the <see cref="MouseEventArgs"/> class.
System\Windows\Forms\Input\MouseEventHandler.cs (1)
11public delegate void MouseEventHandler(object? sender, MouseEventArgs e);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (3)
1062protected override void OnMouseMove(MouseEventArgs e) 1131protected override void OnMouseDown(MouseEventArgs e) 1171protected override void OnMouseUp(MouseEventArgs e)
System\Windows\Forms\NotifyIcon.cs (5)
463private void OnMouseClick(MouseEventArgs mea) 472private void OnMouseDoubleClick(MouseEventArgs mea) 482private void OnMouseDown(MouseEventArgs e) 491private void OnMouseMove(MouseEventArgs e) 500private void OnMouseUp(MouseEventArgs e)
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
318protected override void OnMouseDown(MouseEventArgs e)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
610protected override void OnMouseWheel(MouseEventArgs e)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
533protected override void OnMouseWheel(MouseEventArgs e)
System\Windows\Forms\ToolTip\ToolTip.cs (1)
867private void MouseMove(object? sender, MouseEventArgs me)
System\Windows\Forms\UserControl.cs (1)
292protected override void OnMouseDown(MouseEventArgs e)
System.Windows.Forms.Design (33)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
122protected override void OnMouseDown(MouseEventArgs e) 168protected override void OnMouseUp(MouseEventArgs mevent)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
254protected override void OnReadOnlyTextBoxLabelClick(object? sender, MouseEventArgs e)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
21protected override void OnMouseDown(MouseEventArgs e) 43protected override void OnMouseUp(MouseEventArgs e)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
155protected virtual void OnReadOnlyTextBoxLabelClick(object? sender, MouseEventArgs e)
System\Drawing\Design\ColorEditor.ColorPalette.cs (3)
305protected override void OnMouseDown(MouseEventArgs me) 319protected override void OnMouseMove(MouseEventArgs me) 333protected override void OnMouseUp(MouseEventArgs me)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
258protected override void OnMouseDown(MouseEventArgs e)
System\Windows\Forms\Design\ComponentTray.cs (11)
1033protected override void OnMouseDoubleClick(MouseEventArgs e) 1217protected override void OnMouseDown(MouseEventArgs e) 1288protected override void OnMouseMove(MouseEventArgs e) 1321protected override void OnMouseUp(MouseEventArgs e) 2147protected override void OnMouseDown(MouseEventArgs me) 2179protected override void OnMouseMove(MouseEventArgs me) 2231protected override void OnMouseUp(MouseEventArgs me) 2687public bool OnMouseDoubleClick(MouseEventArgs e) 2701public bool OnMouseDown(MouseEventArgs e) 2715public bool OnMouseMove(MouseEventArgs e) 2729public bool OnMouseUp(MouseEventArgs e)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1748private void treeViewCtrl_MouseMove(object? sender, MouseEventArgs e)
System\Windows\Forms\Design\SelectionUIService.cs (3)
512protected override void OnMouseDown(MouseEventArgs me) 603protected override void OnMouseMove(MouseEventArgs me) 714protected override void OnMouseUp(MouseEventArgs me)
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
281private void OnSplitContainer(object? sender, MouseEventArgs e)
System\Windows\Forms\Design\TabOrder.cs (2)
572protected override void OnMouseDown(MouseEventArgs e) 606protected override void OnMouseMove(MouseEventArgs e)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (5)
458private void CenterLabelClick(object sender, MouseEventArgs e) 607private void CenterLabelMouseMove(object sender, MouseEventArgs e) 1150private void OnMouseUp(object sender, MouseEventArgs e) 1167private void OnMouseDown(object sender, MouseEventArgs e) 1180private void OnMouseMove(object sender, MouseEventArgs e)
System.Windows.Forms.Tests (157)
CheckedListBoxTests.cs (2)
790MouseEventArgs eventArgs = new(MouseButtons.Left, 1, 0, 0, 0); 875public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
273public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e);
System\Windows\Forms\ButtonBaseTests.cs (13)
6111public void ButtonBase_OnMouseDown_Invoke_CallsMouseDown(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6160public void ButtonBase_OnMouseDown_InvokeWithHandle_CallsMouseDown(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6526public void ButtonBase_OnMouseMove_Invoke_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6556public void ButtonBase_OnMouseMove_InvokeMousePressed_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6587public void ButtonBase_OnMouseMove_InvokeMousePressedLeave_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6640public void ButtonBase_OnMouseMove_InvokeWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6706public void ButtonBase_OnMouseMove_InvokeMousePressedWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6773public void ButtonBase_OnMouseMove_InvokeMousePressedLeaveWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6841public void ButtonBase_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 6878public void ButtonBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 9355public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 9361public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 9363public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ButtonTests.cs (10)
2224public void Button_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2264public void Button_OnMouseDown_Invoke_CallsMouseDown(bool enabled, MouseEventArgs eventArgs) 2309public void Button_OnMouseDown_InvokeWithHandle_CallsMouseDown(bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 2656public void Button_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 2708public void Button_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs, bool expectedIsHandleCreated) 2746public void Button_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 2812public void Button_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 3755public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 3757public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 3763public new void OnMouseUp(MouseEventArgs eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\CheckBoxTests.cs (6)
598public void CheckBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 704public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 706public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e); 712internal new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 714internal new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 822MouseEventArgs eventArgs = new(MouseButtons.Left, 1, new Point(0, 0), 0);
System\Windows\Forms\ControlTests.cs (6)
1320public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 1322public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 1324public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 1332public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 1334public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e); 1336public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\ControlTests.Handlers.cs (6)
3392public void Control_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 3418public void Control_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 3444public void Control_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 3548public void Control_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 3574public void Control_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 3600public void Control_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs)
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (1)
18public void Ctor_Int_Int_Int_Int_MouseEventArgs(int columnIndex, int rowIndex, int localX, int localY, MouseEventArgs mouseE)
System\Windows\Forms\DataGridViewElementTests.cs (4)
325public void DataGridViewElement_RaiseMouseWheel_Invoke_Nop(MouseEventArgs eventArgs) 333public void DataGridViewElement_RaiseMouseWheel_InvokeWithDataGridView_Success(MouseEventArgs eventArgs) 392public new void RaiseMouseWheel(MouseEventArgs e) => base.RaiseMouseWheel(e); 409public new void RaiseMouseWheel(MouseEventArgs e) => base.RaiseMouseWheel(e);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
1303public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 1322public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_InvokeWithDataGridView_CallsMouseWheel(MouseEventArgs eventArgs) 2174public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\DateTimePickerTests.cs (2)
1074public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 1076public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\GroupBoxTests.cs (10)
1655public void GroupBox_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 1679public void GroupBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 1703public void GroupBox_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 1775public void GroupBox_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 1799public void GroupBox_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2369public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 2371public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 2373public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 2379public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 2381public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ListBoxTests.cs (2)
5671public void ListBox_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 6490public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e);
System\Windows\Forms\MonthCalendarTests.cs (4)
3711public void MonthCalendar_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 3735public void MonthCalendar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 4808public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 4810public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\MouseEventArgsTests.cs (1)
17MouseEventArgs e = new(button, clicks, x, y, delta);
System\Windows\Forms\NotifyIconTests.cs (5)
649void handler(object sender, MouseEventArgs e) 664void handler(object sender, MouseEventArgs e) 679void handler(object sender, MouseEventArgs e) 694void handler(object sender, MouseEventArgs e) 709void handler(object sender, MouseEventArgs e)
System\Windows\Forms\ProgressBarTests.cs (2)
2322public void ProgressBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2668public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\PropertyGridTests.cs (9)
3714public void PropertyGrid_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs, bool expectedIsHandleCreated) 3719void handler(object sender, MouseEventArgs e) 3815public void PropertyGrid_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 3819void handler(object sender, MouseEventArgs e) 3848public void PropertyGrid_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 3853void handler(object sender, MouseEventArgs e) 4239public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 4245public new void OnMouseMove(MouseEventArgs eventargs) => base.OnMouseMove(eventargs); 4247public new void OnMouseUp(MouseEventArgs eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\RadioButtonTests.cs (8)
1020public void RadioButton_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 1061public void RadioButton_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 1114public void RadioButton_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs, bool expectedIsHandleCreated) 1152public void RadioButton_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 1217public void RadioButton_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 1609public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 1611public new void OnMouseDown(MouseEventArgs eventargs) => base.OnMouseDown(eventargs); 1613public new void OnMouseUp(MouseEventArgs eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\ScrollBarTests.cs (13)
2065public void ScrollBar_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 2089public void ScrollBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2113public void ScrollBar_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 2137public void ScrollBar_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 2161public void ScrollBar_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2185public void ScrollBar_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 2478MouseEventArgs eventArgs = new(MouseButtons.Left, 0, 0, 0, delta); 3228public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 3230public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 3232public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 3234public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 3236public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e); 3238public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\SplitterTests.cs (9)
1963public void Splitter_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 2005public void Splitter_OnMouseDown_InvokeWithTarget_CallsMouseDown(MouseEventArgs eventArgs, bool expectedIsHandleCreated) 2059public void Splitter_OnMouseDown_InvokeWithHandle_CallsMouseDown(MouseEventArgs eventArgs) 2106public void Splitter_OnMouseDown_InvokeWithTargetWithHandle_CallsMouseDown(MouseEventArgs eventArgs) 2180public void Splitter_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 2212public void Splitter_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2377public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 2379public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 2381public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
3656public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseDown_Success(MouseEventArgs eventArgs) 3736public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseMove_Success(MouseEventArgs eventArgs) 3756public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseUp_Success(MouseEventArgs eventArgs) 4600public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 4608public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 4610public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5214public new void OnMouseUp(MouseEventArgs mea) => base.OnMouseUp(mea);
System\Windows\Forms\ToolStripItemTests.cs (8)
11780public void ToolStripItem_OnMouseDown_Invoke_Nop(MouseEventArgs eventArgs) 12089public void ToolStripItem_OnMouseMove_Invoke_Nop(MouseEventArgs eventArgs) 12113public void ToolStripItem_OnMouseUp_Invoke_Nop(MouseEventArgs eventArgs) 15455public void MoveMouse(MouseEventArgs mea) 15465public new void OnMouseDown(MouseEventArgs mea) => base.OnMouseDown(mea); 15582public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 15590public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 15592public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripTests.cs (3)
7654public new void OnMouseDown(MouseEventArgs mea) => base.OnMouseDown(mea); 7658public new void OnMouseMove(MouseEventArgs mea) => base.OnMouseMove(mea); 7660public new void OnMouseUp(MouseEventArgs mea) => base.OnMouseUp(mea);
System\Windows\Forms\UpDownBaseTests.cs (8)
2015public void UpDownBase_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 2118public void UpDownBase_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 2142public void UpUpBase_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2173public void UpDownBase_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 3198public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 3206public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 3208public new void OnMouseUp(MouseEventArgs mevent) => base.OnMouseUp(mevent); 3210public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\UserControlTests.cs (3)
991public void UserControl_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 1017public void UserControl_OnMouseDown_InvokeWithHandle_CallsMouseDown(MouseEventArgs eventArgs) 1873public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e);
TextBoxBaseTests.cs (5)
5560public void TextBoxBase_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 5598public void TextBoxBase_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 5632public void TextBoxBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(MouseEventArgs eventArgs) 7761public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 7763public new void OnMouseUp(MouseEventArgs mevent) => base.OnMouseUp(mevent);
TrackBarTests.cs (6)
2492public void TrackBar_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 2516public void TrackBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2553public void TrackBar_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 3352public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 3354public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 3356public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
150public static TheoryData<MouseEventArgs> GetMouseEventArgsTheoryData() 152return new TheoryData<MouseEventArgs>
System.Windows.Forms.UI.IntegrationTests (5)
DragDropTests.cs (5)
649private void ListDragSource_MouseDown(object? sender, MouseEventArgs e) 675private void ListDragSource_MouseUp(object? sender, MouseEventArgs e) 682private void ListDragSource_MouseMove(object? sender, MouseEventArgs e) 1019private void DragAcceptItem_MouseDown(object? sender, MouseEventArgs e) 1084private void PictureBoxDragSource_MouseDown(object? sender, MouseEventArgs e)
WinFormsControlsTest (4)
DragDrop.cs (4)
174private void PictureBox_MouseDown(object? sender, MouseEventArgs e) 532private void DragAcceptItem_MouseDown(object? sender, MouseEventArgs e) 550private void NyanCatItem_MouseDown(object? sender, MouseEventArgs e) 562private void AsciiCatItem_MouseDown(object? sender, MouseEventArgs e)