28 references to MouseButtons
System.Windows.Forms (25)
System\Windows\Forms\Control.cs (4)
11351
MouseButtons realState =
MouseButtons
;
11375
if (realState !=
MouseButtons
)
11386
if (realState !=
MouseButtons
)
11516
OnMouseMove(new MouseEventArgs(
MouseButtons
, 0, PARAM.ToPoint(m.LParamInternal)));
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
369
if (
MouseButtons
== MouseButtons.None)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1745
OnMouseMove(new MouseEventArgs(
MouseButtons
, 0, point.X, point.Y, 0));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
16444
if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 ||
MouseButtons
!= MouseButtons.None)
26233
if (
MouseButtons
!= MouseButtons.None)
26348
if (
MouseButtons
!= MouseButtons.None)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
568
Control.
MouseButtons
== MouseButtons.Left)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
917
Control.
MouseButtons
== MouseButtons.Left)
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
470
Control.
MouseButtons
== MouseButtons.Left &&
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5967
if (m.LParamInternal != 0 &&
MouseButtons
== MouseButtons.None)
7011
if (_listViewState[LISTVIEWSTATE_expectingMouseUp] && !_listViewState[LISTVIEWSTATE_mouseUpFired] &&
MouseButtons
== MouseButtons.None)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3118
if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 ||
MouseButtons
!= MouseButtons.None)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (1)
87
MouseButtons mouseButtons =
MouseButtons
;
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
589
if (SelectionLength == 0 &&
MouseButtons
== MouseButtons.None)
919
MouseButtons realState =
MouseButtons
;
922
if (realState ==
MouseButtons
&&
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
106
return (Control.
MouseButtons
== MouseButtons.Left) && (Control.ModifierKeys == Keys.None);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
925
if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 ||
MouseButtons
!= MouseButtons.None)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
733
if ((ModifierKeys & (Keys.Shift | Keys.Alt)) != 0 ||
MouseButtons
!= MouseButtons.None)
System\Windows\Forms\Form.cs (1)
7113
if (Capture &&
MouseButtons
== MouseButtons.None)
System\Windows\Forms\Help\HelpProvider.cs (1)
123
if (Control.
MouseButtons
!= MouseButtons.None && !string.IsNullOrEmpty(helpString))
System\Windows\Forms\NotifyIcon.cs (1)
702
OnMouseMove(new MouseEventArgs(Control.
MouseButtons
, 0, 0, 0, 0));
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
366
if (_behaviorService.OnMouseMove(
MouseButtons
, mouseLoc))
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
452
if ((rules & SelectionRules.AllSizeable) != SelectionRules.None || Control.
MouseButtons
== MouseButtons.None)
System.Windows.Forms.Tests (1)
System\Windows\Forms\ControlTests.Properties.cs (1)
9283
Assert.Equal(expected, Control.
MouseButtons
);