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