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