134 references to Left
System.Windows.Forms (97)
System\Windows\Forms\Control.cs (5)
2633
buttons |= MouseButtons.
Left
;
11510
if (button == MouseButtons.
Left
&& GetStyle(ControlStyles.Selectable))
12471
WmMouseDown(ref m, MouseButtons.
Left
, 2);
12480
WmMouseDown(ref m, MouseButtons.
Left
, 1);
12484
WmMouseUp(ref m, MouseButtons.
Left
, 1);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
256
if (mevent.Button == MouseButtons.
Left
&& MouseIsPressed)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
954
if (mevent.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
508
if (mevent.Button == MouseButtons.
Left
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
486
if (mevent.Button == MouseButtons.
Left
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (7)
1599
OnMouseDown(new MouseEventArgs(MouseButtons.
Left
, 1, Ptlc.X, Ptlc.Y, 0));
1647
OnMouseDown(new MouseEventArgs(MouseButtons.
Left
, 1, Ptl.X, Ptl.Y, 0));
1663
OnClick(new MouseEventArgs(MouseButtons.
Left
, 1, PARAM.ToPoint(m.LParamInternal)));
1664
OnMouseClick(new MouseEventArgs(MouseButtons.
Left
, 1, PARAM.ToPoint(m.LParamInternal)));
1679
OnMouseUp(new MouseEventArgs(MouseButtons.
Left
, 1, EditToComboboxMapping(m)));
3738
OnClick(new MouseEventArgs(MouseButtons.
Left
, 1, PARAM.ToPoint(m.LParamInternal)));
3739
OnMouseClick(new MouseEventArgs(MouseButtons.
Left
, 1, PARAM.ToPoint(m.LParamInternal)));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (12)
5814
if (e.Button == MouseButtons.
Left
&& dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count)
5875
if (e.Button == MouseButtons.
Left
&& dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count)
5883
if (e.Button == MouseButtons.
Left
&& dgvcme.ColumnIndex < Columns.Count && dgvcme.RowIndex < Rows.Count)
11901
if (!_dataGridViewState2[State2_MessageFromEditingCtrls] && e.Button == MouseButtons.
Left
)
11946
if (!_dataGridViewState2[State2_MessageFromEditingCtrls] && e.Button == MouseButtons.
Left
)
12675
&& e.Button == MouseButtons.
Left
13460
if (!e.Handled && e.Button == MouseButtons.
Left
&& e.ColumnIndex < Columns.Count)
13635
if (e.Button == MouseButtons.
Left
14947
&& me.Button == MouseButtons.
Left
)
15872
&& (e.Button != MouseButtons.
Left
15890
if (e.Button == MouseButtons.
Left
)
17614
if (!e.Handled && e.Button == MouseButtons.
Left
&& e.RowIndex < Rows.Count)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
443
e.Button == MouseButtons.
Left
;
452
e.Button == MouseButtons.
Left
;
514
if (e.Button == MouseButtons.
Left
&& s_mouseInContentBounds)
565
Control.MouseButtons == MouseButtons.
Left
)
590
if (e.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3027
if (e.Button == MouseButtons.
Left
&& GetContentBounds(e.RowIndex).Contains(x, y))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (5)
762
protected override bool MouseDownUnsharesRow(DataGridViewCellMouseEventArgs e) => e.Button == MouseButtons.
Left
;
772
protected override bool MouseUpUnsharesRow(DataGridViewCellMouseEventArgs e) => e.Button == MouseButtons.
Left
;
867
if (e.Button == MouseButtons.
Left
&& s_mouseInContentBounds)
918
Control.MouseButtons == MouseButtons.
Left
)
943
if (e.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (5)
429
DataGridView is not null && e.Button == MouseButtons.
Left
&& DataGridView.ApplyVisualStylesToHeaderCells;
441
DataGridView is not null && e.Button == MouseButtons.
Left
&& DataGridView.ApplyVisualStylesToHeaderCells;
450
if (e.Button == MouseButtons.
Left
&&
470
Control.MouseButtons == MouseButtons.
Left
&&
508
if (e.Button == MouseButtons.
Left
&& DataGridView.ApplyVisualStylesToHeaderCells)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
576
if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.RowIndex && e.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\Labels\LinkLabelLinkClickedEventArgs.cs (1)
15
: this(link, MouseButtons.
Left
)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
2424
OnClick(new MouseEventArgs(MouseButtons.
Left
, 1, point));
2425
OnMouseClick(new MouseEventArgs(MouseButtons.
Left
, 1, point));
2435
OnDoubleClick(new MouseEventArgs(MouseButtons.
Left
, 2, point));
2436
OnMouseDoubleClick(new MouseEventArgs(MouseButtons.
Left
, 2, point));
System\Windows\Forms\Controls\ListView\ListView.cs (5)
6568
OnItemDrag(new ItemDragEventArgs(MouseButtons.
Left
, item));
6710
MouseButtons button = nmhdr->code == PInvoke.NM_CLICK ? MouseButtons.
Left
: MouseButtons.Right;
7010
WmMouseDown(ref m, MouseButtons.
Left
, 2);
7026
WmMouseDown(ref m, MouseButtons.
Left
, 1);
7033
_downButton = MouseButtons.
Left
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2762
if (target is not null && me.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1980
if ((button & MouseButtons.
Left
) != MouseButtons.
Left
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
484
&& ((button & MouseButtons.
Left
) == MouseButtons.
Left
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2985
if (e.Button == MouseButtons.
Left
&& SplitterInside(e.X) && TotalProperties != 0)
3024
if (e.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
392
if (e.Button == MouseButtons.
Left
)
494
if (e.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (2)
96
if ((mouseButtons & MouseButtons.
Left
) == MouseButtons.
Left
)
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
812
if (e.Button == MouseButtons.
Left
&& e.Clicks == 1)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1481
if (mevent is not null && mevent.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
132
(e.Button == MouseButtons.
Left
))
153
(e.Button == MouseButtons.
Left
))
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
106
return (Control.MouseButtons == MouseButtons.
Left
) && (Control.ModifierKeys == Keys.None);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2552
if (e.Button == MouseButtons.
Left
)
2580
if (e.Button == MouseButtons.
Left
|| (e.Button == MouseButtons.Right && _state[s_stateSupportsRightClick]))
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
868
if (e.Button == MouseButtons.
Left
||
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (3)
423
if (e.Button == MouseButtons.
Left
)
450
if (e.Button == MouseButtons.
Left
)
467
if ((e.Button == MouseButtons.
Left
) && SplitButtonButton.Bounds.Contains(clickPoint))
System\Windows\Forms\Controls\TreeView\TreeView.cs (7)
3001
TvnBeginDrag(MouseButtons.
Left
, nmtv);
3014
MouseButtons button = MouseButtons.
Left
;
3024
button = nmtv->hdr.code == PInvoke.NM_CLICK ? MouseButtons.
Left
: MouseButtons.Right;
3233
WmMouseDown(ref m, MouseButtons.
Left
, 2);
3269
OnMouseDown(new MouseEventArgs(MouseButtons.
Left
, 1, PARAM.ToPoint(m.LParamInternal)));
3285
WmMouseDown(ref m, MouseButtons.
Left
, 1);
3288
_downButton = MouseButtons.
Left
;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
679
if (e.Clicks == 2 && e.Button == MouseButtons.
Left
)
692
if (mevent.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (4)
122
if (!_parent.ValidationCancelled && e.Button == MouseButtons.
Left
)
127
if (e.Clicks == 2 && e.Button == MouseButtons.
Left
)
221
if (!_parent.ValidationCancelled && e.Button == MouseButtons.
Left
)
232
if (e.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (2)
44
if (e.Clicks == 2 && e.Button == MouseButtons.
Left
)
64
if (e.Button == MouseButtons.
Left
)
System\Windows\Forms\Controls\WebBrowser\HtmlElementEventArgs.cs (1)
31
buttons |= MouseButtons.
Left
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1142
if (e.Button == MouseButtons.
Left
&& e.Clicks == 1 && !IsSplitterFixed)
System\Windows\Forms\NotifyIcon.cs (3)
735
WmMouseDown(MouseButtons.
Left
, 2);
738
WmMouseDown(MouseButtons.
Left
, 1);
741
WmMouseUp(MouseButtons.
Left
);
System.Windows.Forms.Design (37)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
255
if (e.Button == MouseButtons.
Left
)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
25
if (e.Button == MouseButtons.
Left
)
47
if (e.Button == MouseButtons.
Left
)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
157
if (e.Button == MouseButtons.
Left
)
System\Drawing\Design\ColorEditor.ColorPalette.cs (3)
308
if (me.Button == MouseButtons.
Left
)
322
if (me.Button == MouseButtons.
Left
&& Bounds.Contains(me.X, me.Y))
337
if (me.Button == MouseButtons.
Left
)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (3)
350
if (_behaviorService.OnMouseDown(MouseButtons.
Left
, mouseLoc))
374
if (_behaviorService.OnMouseUp(MouseButtons.
Left
))
398
if (_behaviorService.OnMouseDoubleClick(MouseButtons.
Left
, mouseLoc))
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (2)
92
if (button == MouseButtons.
Left
)
172
if (button == MouseButtons.
Left
&& OkToMove)
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
110
if (button != MouseButtons.
Left
)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
293
if (button != MouseButtons.
Left
)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
90
if (button == MouseButtons.
Left
&& g is TableLayoutPanelResizeGlyph)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
76
if (button != MouseButtons.
Left
|| !(glyph is ToolStripPanelSelectionGlyph selectionGlyph))
System\Windows\Forms\Design\ComponentTray.cs (4)
1217
if (e.Button == MouseButtons.
Left
&& _toolboxService is not null)
1248
if (e.Button == MouseButtons.
Left
)
1315
if (_mouseDragStart != InvalidPoint && e.Button == MouseButtons.
Left
)
2140
if (me.Button == MouseButtons.
Left
)
System\Windows\Forms\Design\ControlDesigner.cs (10)
1863
: MouseButtons.
Left
;
1865
if (button == MouseButtons.
Left
)
1886
: MouseButtons.
Left
;
1893
if (button == MouseButtons.
Left
&& IsDoubleClick(location.X, location.Y))
1907
if (!EnableDragRect && button == MouseButtons.
Left
)
1936
else if (button == MouseButtons.
Left
)
1957
button = MouseButtons.
Left
;
1985
else if (button == MouseButtons.
Left
)
2009
: MouseButtons.
Left
;
2029
if (button == MouseButtons.
Left
)
System\Windows\Forms\Design\SelectionUIService.cs (1)
528
else if (hitTest != SelectionUIItem.NOHIT && me.Button == MouseButtons.
Left
)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
743
public override bool OnMouseUp(Glyph g, MouseButtons button) => button == MouseButtons.
Left
;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (4)
230
if (glyph is not null && button == MouseButtons.
Left
)
284
if ((button == MouseButtons.
Left
) && (keyService is not null) && (keyService.TemplateNodeActive))
333
if (glyph is not null && button == MouseButtons.
Left
)
541
if (button == MouseButtons.
Left
&& glyph is not null && glyph.ItemDesigner is not null && !glyph.ItemDesigner.IsEditorActive)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
273
_behavior?.OnMouseDown(_containerSelectorGlyph, MouseButtons.
Left
, Point.Empty);