4 types derived from MouseEventArgs
System.Windows.Forms (4)
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\Controls\Unsupported\StatusBar\StatusBarPanelClickEventArgs.cs (1)
20public class StatusBarPanelClickEventArgs : MouseEventArgs
System\Windows\Forms\Input\HandledMouseEventArgs.cs (1)
6public class HandledMouseEventArgs : MouseEventArgs
445 instantiations of MouseEventArgs
System.Windows.Forms (62)
System\Windows\Forms\ActiveX\AxHost.cs (3)
3858base.OnMouseMove(new MouseEventArgs((MouseButtons)(button << 20), 1, x, y, 0)); 3876base.OnMouseUp(new MouseEventArgs((MouseButtons)(button << 20), 1, x, y, 0)); 3894base.OnMouseDown(new MouseEventArgs((MouseButtons)(button << 20), 1, x, y, 0));
System\Windows\Forms\Control.cs (7)
11426OnMouseDown(new MouseEventArgs(button, clicks, PARAM.ToPoint(m.LParamInternal))); 11547OnMouseMove(new MouseEventArgs(MouseButtons, 0, PARAM.ToPoint(m.LParamInternal))); 11584OnClick(new MouseEventArgs(button, clicks, location)); 11585OnMouseClick(new MouseEventArgs(button, clicks, location)); 11589OnDoubleClick(new MouseEventArgs(button, 2, location)); 11590OnMouseDoubleClick(new MouseEventArgs(button, 2, location)); 11594OnMouseUp(new MouseEventArgs(button, clicks, location));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (14)
1594OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptlc.X, Ptlc.Y, 0)); 1611OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, Ptmc.X, Ptmc.Y, 0)); 1628OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Ptrc.X, Ptrc.Y, 0)); 1642OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptl.X, Ptl.Y, 0)); 1658OnClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal))); 1659OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal))); 1674OnMouseUp(new MouseEventArgs(MouseButtons.Left, 1, EditToComboboxMapping(m))); 1687OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, P.X, P.Y, 0)); 1704OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Pt.X, Pt.Y, 0)); 1713OnMouseUp(new MouseEventArgs(MouseButtons.Middle, 1, PARAM.ToPoint(m.LParamInternal))); 1724OnMouseUp(new MouseEventArgs(MouseButtons.Right, 1, ptRBtnUp.X, ptRBtnUp.Y, 0)); 1746OnMouseMove(new MouseEventArgs(MouseButtons, 0, point.X, point.Y, 0)); 3712OnClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal))); 3713OnMouseClick(new MouseEventArgs(MouseButtons.Left, 1, PARAM.ToPoint(m.LParamInternal)));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
5752MouseEventArgs me = new( 5789me = new MouseEventArgs( 5849me = new MouseEventArgs( 5919MouseEventArgs meTmp = new( 16364MouseEventArgs 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)
5893OnMouseDown(new MouseEventArgs(button, clicks, point)); 6656OnMouseClick(new MouseEventArgs(button, 1, pos.X, pos.Y, 0)); 6661OnMouseUp(new MouseEventArgs(button, 1, pos.X, pos.Y, 0)); 6986OnMouseDoubleClick(new MouseEventArgs(_downButton, 2, PARAM.ToPoint(m.LParamInternal))); 6991OnMouseUp(new MouseEventArgs(_downButton, 1, PARAM.ToPoint(m.LParamInternal))); 7017OnMouseUp(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)
3331mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3387mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3431mea = 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 (382)
CheckedListBoxTests.cs (1)
792MouseEventArgs eventArgs = new(MouseButtons.Left, 1, 0, 0, 0);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
59button.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonBaseTests.cs (99)
5546control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5650control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5731control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5815control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 5920control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6010control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6019control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6098yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 6099yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 6100yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 6101yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 6102yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 6103yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 6104yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 6105yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 6106yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) }; 6147yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6148yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 1 }; 6149yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 6150yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 1 }; 6151yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 6152yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 1 }; 6153yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 6154yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 1 }; 6155yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 6511yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 6512yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 6513yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 6514yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 6515yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 6516yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 6517yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 6518yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 6519yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) }; 6520yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0) }; 6521yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0) }; 6565control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6596control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6625yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6626yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 0 }; 6627yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 6628yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 0 }; 6629yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 6630yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 0 }; 6631yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 6632yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 0 }; 6633yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 6634yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0), 0 }; 6635yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0), 0 }; 6689yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6690yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 0 }; 6691yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 6692yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 0 }; 6693yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 6694yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 0 }; 6695yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 6696yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 0 }; 6697yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 6698yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0), 1 }; 6699yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0), 1 }; 6700yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, -1, 0), 1 }; 6701yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 1 }; 6715control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6756yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 6757yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 1 }; 6758yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 1 }; 6759yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 1 }; 6760yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 1 }; 6761yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 1 }; 6762yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 1 }; 6763yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 1 }; 6764yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 1 }; 6765yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, 0, 0), 0 }; 6766yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, -1, 0), 0 }; 6767yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, -1, -1, 0), 0 }; 6768yield return new object[] { flatStyle, enabled, new MouseEventArgs(MouseButtons.Right, 3, int.MaxValue, int.MaxValue, 0), 0 }; 6782control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 6830yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 6831yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 6832yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 6833yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 7644control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7675control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7707control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7793control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7835control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7878control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 7969control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8005control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8042control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8138control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8185control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8233control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8474control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8510control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8547control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8643control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8690control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 8738control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ButtonTests.cs (33)
1061control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 2252yield return new object[] { enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 2253yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 2254yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 2255yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 2256yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 2257yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 2258yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 2259yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 2260yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) }; 2297yield return new object[] { enabled, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), 0 }; 2298yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), 1 }; 2299yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), 0 }; 2300yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), 1 }; 2301yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), 0 }; 2302yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), 1 }; 2303yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), 0 }; 2304yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), 1 }; 2305yield return new object[] { enabled, new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), 0 }; 2645yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 2646yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 2647yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 2648yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 2697yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4), false }; 2698yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), true }; 2699yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), false }; 2700yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4), false }; 2716control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 2801yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4), 0 }; 2802yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), expectedCallCount }; 2803yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), 0 }; 2804yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4), 0 }; 2820control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ComboBoxTests.cs (1)
2778public void OnMouseDown(Point p) => base.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, p.X, p.Y, 0));
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (5)
13yield return new object[] { -1, -1, -1, -1, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 14yield return new object[] { 0, 0, 0, 0, new MouseEventArgs((MouseButtons)1, 0, 0, 0, 0) }; 15yield return new object[] { 1, 2, 3, 4, new MouseEventArgs((MouseButtons)3, -1, -1, -1, -2) }; 36Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellMouseEventArgs(-2, 0, 1, 2, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4))); 43Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellMouseEventArgs(0, -2, 1, 2, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellTests.cs (39)
5499yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5500yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5501yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5502yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5503yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5504yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5505yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5506yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5507yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5508yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5509yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5510yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5511yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5512yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5513yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5514yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5515yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5516yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5532yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5533yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5534yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5535yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5536yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5537yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5538yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5539yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5540yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5541yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5542yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5543yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5544yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5545yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5546yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 5547yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 5548yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 5549yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 6477cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new MouseEventArgs(MouseButtons.Left, 1, 10, 10, 0))); 6485cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new MouseEventArgs(MouseButtons.Left, 1, 10, 10, 0))); 6530Action act = () => cell.MouseClick(new DataGridViewCellMouseEventArgs(0, 0, 10, 10, new MouseEventArgs(MouseButtons.Left, 1, 10, 10, 0)));
System\Windows\Forms\DataGridViewHeaderCellTests.cs (115)
3810yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3812yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3813yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3815yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3816yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3818yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3819yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3821yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3822yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3824yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3825yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 3827yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 3843yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3844yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3845yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3846yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3847yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3848yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3849yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3850yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3851yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3852yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3853yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3854yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3855yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3856yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3857yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3858yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), false }; 3859yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.IsSupported && enableHeadersVisualStyles }; 3860yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), false }; 3898yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3899yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3900yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3901yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3902yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 3903yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4038cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4106yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4107yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4108yield return new object[] { new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4109yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4110yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4111yield return new object[] { new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4112yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4113yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4114yield return new object[] { new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4115yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4116yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4117yield return new object[] { new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4118yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4119yield return new object[] { new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4120yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4121yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4122yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4123yield return new object[] { new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4139yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4140yield 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 }; 4141yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4142yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4143yield 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 }; 4144yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4145yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4146yield 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 }; 4147yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4148yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4149yield 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 }; 4150yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4151yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4152yield 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 }; 4153yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4154yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), ButtonState.Normal }; 4155yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), ButtonState.Normal }; 4158yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal }; 4212DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)); 4397cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4427cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4446yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4447yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4448yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4449yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4450yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4451yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4452yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4453yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4454yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4455yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4456yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4457yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4458yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4459yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4460yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4461yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)) }; 4462yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)) }; 4466yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)) }; 4511DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)); 4521yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4522yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4523yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4524yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4525yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4526yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4527yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4528yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4529yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4530yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4531yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4532yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4533yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4534yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), expectedButtonState2 }; 4535yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4536yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0)), expectedButtonState1 }; 4537yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Middle, 0, 0, 0, 0)), expectedButtonState1 }; 4540yield return new object[] { false, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), ButtonState.Normal }; 4568cell.OnMouseDown(new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0))); 4595DataGridViewCellMouseEventArgs e = new(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0));
System\Windows\Forms\DataGridViewTests.cs (8)
3744DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3749args = new(0, 1, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3771DataGridViewCellMouseEventArgs args = new(0, 0, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0)); 3776args = new(0, 1, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0)); 3823DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3828args = new(1, -1, 0, 0, new(MouseButtons.Left, 1, 0, 0, 0)); 3849DataGridViewCellMouseEventArgs args = new(0, -1, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0)); 3854args = new(1, -1, 0, 0, new(MouseButtons.Left, 2, 0, 0, 0));
System\Windows\Forms\DateTimePickerTests.cs (4)
575control.OnMouseClick(new(MouseButtons.Left, 1, 0, 0, 0)); 579control.OnMouseClick(new(MouseButtons.Left, 1, 0, 0, 0)); 596control.OnMouseDoubleClick(new(MouseButtons.Left, 1, 0, 0, 0)); 600control.OnMouseDoubleClick(new(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\MouseEventArgsTests.cs (1)
19MouseEventArgs e = new(button, clicks, x, y, delta);
System\Windows\Forms\PropertyGridTests.cs (18)
3703yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0), false }; 3704yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0), true }; 3705yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0), false }; 3706yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0), true }; 3707yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0), false }; 3708yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0), true }; 3709yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0), false }; 3710yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0), true }; 3711yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0), false }; 3804yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 3805yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 3806yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 3807yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 3808yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 3809yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 3810yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 3811yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 3812yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) };
System\Windows\Forms\RadioButtonTests.cs (14)
1050yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 1051yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 1052yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 1053yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 1103yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4), false }; 1104yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), expectedIsHandleCreated }; 1105yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), false }; 1106yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4), false }; 1122control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 1206yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.None, 1, 2, 3, 4) }; 1207yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 1208yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 1209yield return new object[] { flatStyle, new MouseEventArgs(MouseButtons.Right, 1, 2, 3, 4) }; 1225control.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ScrollBarTests.cs (1)
2480MouseEventArgs eventArgs = new(MouseButtons.Left, 0, 0, 0, delta);
System\Windows\Forms\SplitterTests.cs (6)
1957yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 2, 3, 4) }; 1958yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4) }; 1959yield return new object[] { new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4) }; 1999yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 2, 3, 4), false }; 2000yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 2, 3, 4), true }; 2001yield return new object[] { new MouseEventArgs(MouseButtons.Middle, 1, 2, 3, 4), false };
System\Windows\Forms\ToolStripControlHostTests.cs (3)
4085c.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 4097c.OnMouseMove(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0)); 4100c.OnMouseUp(new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0));
System\Windows\Forms\ToolStripItemTests.cs (5)
7740owner.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 7778parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 7796parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 14434owner.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0)); 14523parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\ToolStripTests.cs (1)
5833toolStrip.OnMouseMove(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.Y, 0));
System\Windows\Forms\UpDownBaseTests.cs (9)
2004yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 2005yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 2006yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 2007yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 2008yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 2009yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 2010yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 2011yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 2012yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) };
TextBoxBaseTests.cs (9)
5587yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 5588yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 5589yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 5590yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 5591yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 5592yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 5593yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 5594yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 5595yield return new object[] { new MouseEventArgs(MouseButtons.Right, 3, 0, 0, 0) };
TrackBarTests.cs (9)
2542yield return new object[] { new MouseEventArgs(MouseButtons.None, 0, 0, 0, 0) }; 2543yield return new object[] { new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0) }; 2544yield return new object[] { new MouseEventArgs(MouseButtons.Right, 0, 0, 0, 0) }; 2545yield return new object[] { new MouseEventArgs(MouseButtons.Left, 1, 0, 0, 0) }; 2546yield return new object[] { new MouseEventArgs(MouseButtons.Right, 1, 0, 0, 0) }; 2547yield return new object[] { new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0) }; 2548yield return new object[] { new MouseEventArgs(MouseButtons.Right, 2, 0, 0, 0) }; 2549yield return new object[] { new MouseEventArgs(MouseButtons.Left, 3, 0, 0, 0) }; 2550yield 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),
334 references to MouseEventArgs
System.Windows.Forms (132)
System\Windows\Forms\Control.cs (7)
5079protected void RaiseMouseEvent(object key, MouseEventArgs e) 7747protected virtual void OnMouseDoubleClick(MouseEventArgs e) 7756protected virtual void OnMouseClick(MouseEventArgs e) 7774protected virtual void OnMouseDown(MouseEventArgs e) 7836protected virtual void OnMouseMove(MouseEventArgs e) 7845protected virtual void OnMouseUp(MouseEventArgs e) 7854protected 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)
1785protected override void OnMouseDown(MouseEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (28)
3639private bool ColumnRelocationTarget(MouseEventArgs e, HitTestInfo hti, out int previousColumnIndex) 5734private void EditingControls_CommonMouseEventHandler(object? sender, MouseEventArgs e, DataGridViewMouseEvent dgvme) 5752MouseEventArgs me = new( 5919MouseEventArgs meTmp = new( 5951if (e is MouseEventArgs me) 5961if (e is MouseEventArgs me) 5967private void EditingControls_MouseClick(object? sender, MouseEventArgs e) 5973private void EditingControls_MouseDoubleClick(object? sender, MouseEventArgs e) 5979private void EditingControls_MouseDown(object? sender, MouseEventArgs e) 6027private void EditingControls_MouseMove(object? sender, MouseEventArgs e) 6033private void EditingControls_MouseUp(object? sender, MouseEventArgs e) 6039private void EndColumnHeadersResize(MouseEventArgs e) 6062private void EndColumnRelocation(MouseEventArgs e, HitTestInfo hti) 6096private void EndColumnResize(MouseEventArgs e) 6283private void EndRowHeadersResize(MouseEventArgs e) 6316private void EndRowResize(MouseEventArgs e) 10427private void MoveColumnHeadersOrRowResize(MouseEventArgs e) 10488private void MoveColumnRelocation(MouseEventArgs e, HitTestInfo hti) 14944if (e is MouseEventArgs me) 15859protected override void OnMouseClick(MouseEventArgs e) 15950protected override void OnMouseDoubleClick(MouseEventArgs e) 16091protected override void OnMouseDown(MouseEventArgs e) 16184protected override void OnMouseMove(MouseEventArgs e) 16341protected override void OnMouseUp(MouseEventArgs e) 16364MouseEventArgs meTmp = new(e.Button, 2, e.X, e.Y, e.Delta); 16449protected override void OnMouseWheel(MouseEventArgs e) 16645internal void OnMouseWheelInternal(MouseEventArgs e) 29154private 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)
238protected 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) 2569private void OnEditMouseDown(object? sender, MouseEventArgs e) 2944protected override void OnMouseDown(MouseEventArgs e) 3011protected override void OnMouseMove(MouseEventArgs e) 3102protected override void OnMouseUp(MouseEventArgs e) => CancelSplitterMove(); 3104protected 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)
2072protected 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)
1462protected override void OnMouseUp(MouseEventArgs mevent)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3308protected override void OnMouseDown(MouseEventArgs mea) 3346protected override void OnMouseMove(MouseEventArgs mea) 3421protected 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)
1205protected 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)
2297HandleMouseMove((MouseEventArgs)e); 2303HandleMouseUp((MouseEventArgs)e); 2306HandleMouseDown((MouseEventArgs)e); 2494private void HandleMouseMove(MouseEventArgs mea) 2542private void HandleMouseDown(MouseEventArgs e) 2557private void HandleMouseUp(MouseEventArgs e) 2839protected virtual void OnMouseMove(MouseEventArgs mea) 2862protected virtual void OnMouseDown(MouseEventArgs e) 2869protected virtual void OnMouseUp(MouseEventArgs e) 3081internal 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)
910protected 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)
13/// Initializes a new instance of the <see cref="MouseEventArgs"/> class. 25/// 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)
604protected 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)
1750private 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)
792MouseEventArgs eventArgs = new(MouseButtons.Left, 1, 0, 0, 0); 877public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
275public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e);
System\Windows\Forms\ButtonBaseTests.cs (13)
6113public void ButtonBase_OnMouseDown_Invoke_CallsMouseDown(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6162public void ButtonBase_OnMouseDown_InvokeWithHandle_CallsMouseDown(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6528public void ButtonBase_OnMouseMove_Invoke_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6558public void ButtonBase_OnMouseMove_InvokeMousePressed_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6589public void ButtonBase_OnMouseMove_InvokeMousePressedLeave_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs) 6642public void ButtonBase_OnMouseMove_InvokeWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6708public void ButtonBase_OnMouseMove_InvokeMousePressedWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6775public void ButtonBase_OnMouseMove_InvokeMousePressedLeaveWithHandle_CallsMouseMove(FlatStyle flatStyle, bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 6843public void ButtonBase_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 6880public void ButtonBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 9357public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 9363public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 9365public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ButtonTests.cs (10)
2226public void Button_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2266public void Button_OnMouseDown_Invoke_CallsMouseDown(bool enabled, MouseEventArgs eventArgs) 2311public void Button_OnMouseDown_InvokeWithHandle_CallsMouseDown(bool enabled, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 2658public void Button_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 2710public void Button_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs, bool expectedIsHandleCreated) 2748public void Button_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 2814public void Button_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs, int expectedInvalidatedCallCount) 3757public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 3759public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 3765public new void OnMouseUp(MouseEventArgs eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\CheckBoxTests.cs (6)
600public void CheckBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 706public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 708public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e); 714internal new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 716internal new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 824MouseEventArgs eventArgs = new(MouseButtons.Left, 1, new Point(0, 0), 0);
System\Windows\Forms\ControlTests.cs (6)
1322public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 1324public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 1326public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 1334public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 1336public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e); 1338public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\ControlTests.Handlers.cs (6)
3394public void Control_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 3420public void Control_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 3446public void Control_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 3550public void Control_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 3576public void Control_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 3602public void Control_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs)
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (1)
20public void Ctor_Int_Int_Int_Int_MouseEventArgs(int columnIndex, int rowIndex, int localX, int localY, MouseEventArgs mouseE)
System\Windows\Forms\DataGridViewElementTests.cs (4)
327public void DataGridViewElement_RaiseMouseWheel_Invoke_Nop(MouseEventArgs eventArgs) 335public void DataGridViewElement_RaiseMouseWheel_InvokeWithDataGridView_Success(MouseEventArgs eventArgs) 394public new void RaiseMouseWheel(MouseEventArgs e) => base.RaiseMouseWheel(e); 411public new void RaiseMouseWheel(MouseEventArgs e) => base.RaiseMouseWheel(e);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
1305public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 1324public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_OnMouseWheel_InvokeWithDataGridView_CallsMouseWheel(MouseEventArgs eventArgs) 2176public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\DateTimePickerTests.cs (2)
1076public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 1078public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\GroupBoxTests.cs (10)
1657public void GroupBox_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 1681public void GroupBox_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 1705public void GroupBox_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 1777public void GroupBox_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 1801public void GroupBox_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2371public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 2373public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 2375public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 2381public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 2383public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ListBoxTests.cs (2)
5673public void ListBox_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 6492public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e);
System\Windows\Forms\MonthCalendarTests.cs (4)
3713public void MonthCalendar_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 3737public void MonthCalendar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 4810public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 4812public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\MouseEventArgsTests.cs (1)
19MouseEventArgs e = new(button, clicks, x, y, delta);
System\Windows\Forms\NotifyIconTests.cs (5)
651void handler(object sender, MouseEventArgs e) 666void handler(object sender, MouseEventArgs e) 681void handler(object sender, MouseEventArgs e) 696void handler(object sender, MouseEventArgs e) 711void handler(object sender, MouseEventArgs e)
System\Windows\Forms\ProgressBarTests.cs (2)
2324public void ProgressBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2670public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e);
System\Windows\Forms\PropertyGridTests.cs (9)
3716public void PropertyGrid_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs, bool expectedIsHandleCreated) 3721void handler(object sender, MouseEventArgs e) 3817public void PropertyGrid_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 3821void handler(object sender, MouseEventArgs e) 3850public void PropertyGrid_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 3855void handler(object sender, MouseEventArgs e) 4241public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 4247public new void OnMouseMove(MouseEventArgs eventargs) => base.OnMouseMove(eventargs); 4249public new void OnMouseUp(MouseEventArgs eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\RadioButtonTests.cs (8)
1022public void RadioButton_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 1063public void RadioButton_OnMouseUp_Invoke_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 1116public void RadioButton_OnMouseUp_InvokeMouseDown_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs, bool expectedIsHandleCreated) 1154public void RadioButton_OnMouseUp_InvokeWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 1219public void RadioButton_OnMouseUp_InvokeMouseDownWithHandle_CallsMouseUp(FlatStyle flatStyle, MouseEventArgs eventArgs) 1611public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 1613public new void OnMouseDown(MouseEventArgs eventargs) => base.OnMouseDown(eventargs); 1615public new void OnMouseUp(MouseEventArgs eventargs) => base.OnMouseUp(eventargs);
System\Windows\Forms\ScrollBarTests.cs (13)
2067public void ScrollBar_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 2091public void ScrollBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2115public void ScrollBar_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 2139public void ScrollBar_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 2163public void ScrollBar_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2187public void ScrollBar_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 2480MouseEventArgs eventArgs = new(MouseButtons.Left, 0, 0, 0, delta); 3230public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 3232public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 3234public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 3236public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 3238public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e); 3240public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\SplitterTests.cs (9)
1965public void Splitter_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 2007public void Splitter_OnMouseDown_InvokeWithTarget_CallsMouseDown(MouseEventArgs eventArgs, bool expectedIsHandleCreated) 2061public void Splitter_OnMouseDown_InvokeWithHandle_CallsMouseDown(MouseEventArgs eventArgs) 2108public void Splitter_OnMouseDown_InvokeWithTargetWithHandle_CallsMouseDown(MouseEventArgs eventArgs) 2182public void Splitter_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 2214public void Splitter_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2379public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 2381public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 2383public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
3658public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseDown_Success(MouseEventArgs eventArgs) 3738public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseMove_Success(MouseEventArgs eventArgs) 3758public void ToolStripControlHost_OnSubscribeControlEvents_InvokeMouseUp_Success(MouseEventArgs eventArgs) 4602public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 4610public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 4612public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5216public new void OnMouseUp(MouseEventArgs mea) => base.OnMouseUp(mea);
System\Windows\Forms\ToolStripItemTests.cs (8)
11763public void ToolStripItem_OnMouseDown_Invoke_Nop(MouseEventArgs eventArgs) 12072public void ToolStripItem_OnMouseMove_Invoke_Nop(MouseEventArgs eventArgs) 12096public void ToolStripItem_OnMouseUp_Invoke_Nop(MouseEventArgs eventArgs) 15438public void MoveMouse(MouseEventArgs mea) 15448public new void OnMouseDown(MouseEventArgs mea) => base.OnMouseDown(mea); 15565public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 15573public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 15575public new void OnMouseUp(MouseEventArgs e) => base.OnMouseUp(e);
System\Windows\Forms\ToolStripTests.cs (3)
7625public new void OnMouseDown(MouseEventArgs mea) => base.OnMouseDown(mea); 7629public new void OnMouseMove(MouseEventArgs mea) => base.OnMouseMove(mea); 7631public new void OnMouseUp(MouseEventArgs mea) => base.OnMouseUp(mea);
System\Windows\Forms\UpDownBaseTests.cs (8)
2017public void UpDownBase_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 2120public void UpDownBase_OnMouseMove_Invoke_CallsMouseMove(MouseEventArgs eventArgs) 2144public void UpUpBase_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 2175public void UpDownBase_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 3200public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e); 3208public new void OnMouseMove(MouseEventArgs e) => base.OnMouseMove(e); 3210public new void OnMouseUp(MouseEventArgs mevent) => base.OnMouseUp(mevent); 3212public new void OnMouseWheel(MouseEventArgs e) => base.OnMouseWheel(e);
System\Windows\Forms\UserControlTests.cs (3)
993public void UserControl_OnMouseDown_Invoke_CallsMouseDown(MouseEventArgs eventArgs) 1019public void UserControl_OnMouseDown_InvokeWithHandle_CallsMouseDown(MouseEventArgs eventArgs) 1875public new void OnMouseDown(MouseEventArgs e) => base.OnMouseDown(e);
TextBoxBaseTests.cs (5)
5562public void TextBoxBase_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 5600public void TextBoxBase_OnMouseUp_Invoke_CallsMouseUp(MouseEventArgs eventArgs) 5634public void TextBoxBase_OnMouseUp_InvokeWithHandle_CallsMouseUp(MouseEventArgs eventArgs) 7763public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 7765public new void OnMouseUp(MouseEventArgs mevent) => base.OnMouseUp(mevent);
TrackBarTests.cs (6)
2494public void TrackBar_OnMouseClick_Invoke_CallsMouseClick(MouseEventArgs eventArgs) 2518public void TrackBar_OnMouseDoubleClick_Invoke_CallsMouseDoubleClick(MouseEventArgs eventArgs) 2555public void TrackBar_OnMouseWheel_Invoke_CallsMouseWheel(MouseEventArgs eventArgs) 3354public new void OnMouseClick(MouseEventArgs e) => base.OnMouseClick(e); 3356public new void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseDoubleClick(e); 3358public 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)
706private void ListDragSource_MouseDown(object? sender, MouseEventArgs e) 732private void ListDragSource_MouseUp(object? sender, MouseEventArgs e) 739private void ListDragSource_MouseMove(object? sender, MouseEventArgs e) 1076private void DragAcceptItem_MouseDown(object? sender, MouseEventArgs e) 1141private void PictureBoxDragSource_MouseDown(object? sender, MouseEventArgs e)
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
318public static void DataGrid_MouseUp(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)