125 references to Left
System.Windows.Forms (104)
winforms\Managed\System\WinForms\Button.cs (1)
297
if (mevent.Button == MouseButtons.
Left
&& MouseIsPressed) {
winforms\Managed\System\WinForms\ButtonBase.cs (1)
902
if (mevent.Button == MouseButtons.
Left
) {
winforms\Managed\System\WinForms\CheckBox.cs (1)
644
if (mevent.Button == MouseButtons.
Left
&& MouseIsPressed) {
winforms\Managed\System\WinForms\ComboBox.cs (7)
1786
OnMouseDown(new MouseEventArgs(MouseButtons.
Left
, 1, Ptlc.X, Ptlc.Y, 0));
1832
OnMouseDown(new MouseEventArgs(MouseButtons.
Left
, 1, Ptl.X, Ptl.Y, 0));
1853
OnClick(new MouseEventArgs(MouseButtons.
Left
, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
1854
OnMouseClick(new MouseEventArgs(MouseButtons.
Left
, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
1870
OnMouseUp(new MouseEventArgs(MouseButtons.
Left
, 1, pt.X, pt.Y, 0));
3739
OnClick(new MouseEventArgs(MouseButtons.
Left
, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
3740
OnMouseClick(new MouseEventArgs(MouseButtons.
Left
, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
winforms\Managed\System\WinForms\Control.cs (5)
3360
if (UnsafeNativeMethods.GetKeyState((int)Keys.LButton) < 0) buttons |= MouseButtons.
Left
;
13369
if (button == MouseButtons.
Left
&& GetStyle(ControlStyles.Selectable)) {
14288
WmMouseDown(ref m, MouseButtons.
Left
, 2);
14294
WmMouseDown(ref m, MouseButtons.
Left
, 1);
14297
WmMouseUp(ref m, MouseButtons.
Left
, 1);
winforms\Managed\System\WinForms\DataGrid.cs (3)
4026
if (e.Button != MouseButtons.
Left
)
4262
if (lastRowSelected != -1 && (mouse & MouseButtons.
Left
) == MouseButtons.
Left
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
485
return e.Button == MouseButtons.
Left
;
503
return e.Button == MouseButtons.
Left
;
565
if (e.Button == MouseButtons.
Left
&& mouseInContentBounds)
618
Control.MouseButtons == MouseButtons.
Left
)
643
if (e.Button == MouseButtons.
Left
)
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
3461
if (e.Button == MouseButtons.
Left
&& GetContentBounds(e.RowIndex).Contains(x, y))
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (5)
880
return e.Button == MouseButtons.
Left
;
898
return e.Button == MouseButtons.
Left
;
997
if (e.Button == MouseButtons.
Left
&& mouseInContentBounds)
1050
Control.MouseButtons == MouseButtons.
Left
)
1075
if (e.Button == MouseButtons.
Left
)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (5)
531
return e.Button == MouseButtons.
Left
&& this.DataGridView.ApplyVisualStylesToHeaderCells;
551
return e.Button == MouseButtons.
Left
&& this.DataGridView.ApplyVisualStylesToHeaderCells;
561
if (e.Button == MouseButtons.
Left
&&
581
Control.MouseButtons == MouseButtons.
Left
&&
617
if (e.Button == MouseButtons.
Left
&& this.DataGridView.ApplyVisualStylesToHeaderCells)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (12)
5866
if (e.Button == MouseButtons.
Left
&&
5918
if (e.Button == MouseButtons.
Left
&&
5927
if (e.Button == MouseButtons.
Left
&&
12280
if (!this.dataGridViewState2[DATAGRIDVIEWSTATE2_messageFromEditingCtrls] && e.Button == MouseButtons.
Left
)
12328
if (!this.dataGridViewState2[DATAGRIDVIEWSTATE2_messageFromEditingCtrls] && e.Button == MouseButtons.
Left
)
13019
e.Button == MouseButtons.
Left
&&
13936
if (!e.Handled && e.Button == MouseButtons.
Left
&& e.ColumnIndex < this.Columns.Count)
14107
if (e.Button == MouseButtons.
Left
&&
15446
me.Button == MouseButtons.
Left
)
16328
(e.Button != MouseButtons.
Left
||
16346
if (e.Button == MouseButtons.
Left
)
18075
if (!e.Handled && e.Button == MouseButtons.
Left
&& e.RowIndex < this.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
604
if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.RowIndex && e.Button == MouseButtons.
Left
)
winforms\Managed\System\WinForms\HtmlElementEventArgs.cs (1)
49
buttons |= MouseButtons.
Left
;
winforms\Managed\System\WinForms\LinkLabelLinkClickedEvent.cs (1)
35
this.button = MouseButtons.
Left
;
winforms\Managed\System\WinForms\ListBox.cs (4)
2421
OnClick(new MouseEventArgs(MouseButtons.
Left
, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
2422
OnMouseClick(new MouseEventArgs(MouseButtons.
Left
, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
2430
OnDoubleClick(new MouseEventArgs(MouseButtons.
Left
, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
2431
OnMouseDoubleClick(new MouseEventArgs(MouseButtons.
Left
, 2, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
winforms\Managed\System\WinForms\ListView.cs (5)
5863
LvnBeginDrag(MouseButtons.
Left
, nmlv);
5973
MouseButtons button = nmhdr->code == NativeMethods.NM_CLICK ? MouseButtons.
Left
: MouseButtons.Right;
6260
WmMouseDown(ref m, MouseButtons.
Left
, 2);
6268
WmMouseDown(ref m, MouseButtons.
Left
, 1);
6269
downButton = MouseButtons.
Left
;
winforms\Managed\System\WinForms\MouseEvent.cs (1)
61
Debug.Assert((button & (MouseButtons.
Left
| MouseButtons.None | MouseButtons.Right | MouseButtons.Middle | MouseButtons.XButton1 | MouseButtons.XButton2)) ==
winforms\Managed\System\WinForms\NotifyIcon.cs (3)
854
WmMouseDown(ref msg, MouseButtons.
Left
, 2);
857
WmMouseDown(ref msg, MouseButtons.
Left
, 1);
860
WmMouseUp(ref msg, MouseButtons.
Left
);
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3144
if (target != null && me.Button == MouseButtons.
Left
) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
2309
if ((button & MouseButtons.
Left
) != MouseButtons.
Left
) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
587
if (pvUIItems != null && count == 2 && ((button & MouseButtons.
Left
) == MouseButtons.
Left
)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
3170
if (me.Button == MouseButtons.
Left
&& SplitterInside(me.X,me.Y) && totalProps != 0) {
3206
if (me.Button == MouseButtons.
Left
) {
5788
if (e.Button == MouseButtons.
Left
) {
5896
if (e.Button == MouseButtons.
Left
) {
winforms\Managed\System\WinForms\RadioButton.cs (1)
571
if (mevent.Button == MouseButtons.
Left
&& GetStyle(ControlStyles.UserPaint)) {
winforms\Managed\System\WinForms\RichTextBox.cs (2)
3882
if ((b & MouseButtons.
Left
) == MouseButtons.
Left
) {
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1319
if (e.Button == MouseButtons.
Left
&& e.Clicks == 1 && !IsSplitterFixed) {
winforms\Managed\System\WinForms\Splitter.cs (1)
879
if (e.Button == MouseButtons.
Left
&& e.Clicks == 1) {
winforms\Managed\System\WinForms\StatusBar.cs (3)
1069
MouseButtons button = MouseButtons.
Left
;
1073
button = MouseButtons.
Left
;
1081
button = MouseButtons.
Left
;
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
1686
if (mevent.Button == MouseButtons.
Left
) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
127
(e.Button == MouseButtons.
Left
)) {
143
(e.Button == MouseButtons.
Left
)) {
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
129
return (Control.MouseButtons == MouseButtons.
Left
) && (Control.ModifierKeys == Keys.None);
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
2927
if (e.Button == MouseButtons.
Left
) {
2954
if (e.Button == MouseButtons.
Left
|| (e.Button == MouseButtons.Right && state[stateSupportsRightClick])) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
971
if (e.Button == MouseButtons.
Left
||
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
515
if (e.Button == MouseButtons.
Left
) {
544
if (e.Button == MouseButtons.
Left
) {
557
if ((e.Button == MouseButtons.
Left
) && this.SplitButtonButton.Bounds.Contains(clickPoint)) {
winforms\Managed\System\WinForms\TreeView.cs (7)
2999
TvnBeginDrag(MouseButtons.
Left
, nmtv);
3015
MouseButtons button = MouseButtons.
Left
;
3026
? MouseButtons.
Left
: MouseButtons.Right;
3235
WmMouseDown(ref m, MouseButtons.
Left
, 2);
3265
OnMouseDown(new MouseEventArgs(MouseButtons.
Left
, 1, NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam), 0));
3278
WmMouseDown(ref m, MouseButtons.
Left
, 1);
3280
downButton = MouseButtons.
Left
;
winforms\Managed\System\WinForms\UpDownBase.cs (8)
949
if (e.Clicks == 2 && e.Button == MouseButtons.
Left
) {
964
if (mevent.Button == MouseButtons.
Left
) {
1292
if (e.Clicks == 2 && e.Button == MouseButtons.
Left
) {
1310
if (e.Button == MouseButtons.
Left
) {
1538
if (!parent.ValidationCancelled && e.Button == MouseButtons.
Left
) {
1541
if (e.Clicks == 2 && e.Button == MouseButtons.
Left
) {
1643
if (!parent.ValidationCancelled && e.Button == MouseButtons.
Left
) {
1656
if (e.Button == MouseButtons.
Left
) {
System.Workflow.ComponentModel (21)
AuthoringOM\Design\DesignerWidgets.cs (2)
440
if (e.Button == MouseButtons.
Left
)
449
if (e.Button == MouseButtons.
Left
)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (6)
83
if ((eventArgs.Button & MouseButtons.
Left
) == MouseButtons.
Left
)
121
if ((eventArgs.Button & MouseButtons.
Left
) == MouseButtons.
Left
)
198
if ((eventArgs.Button & MouseButtons.
Left
) == MouseButtons.
Left
)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (3)
88
if (eventArgs.Button == MouseButtons.
Left
)
108
if (eventArgs.Button == MouseButtons.
Left
)
117
else if (parentView.RootDesigner != null && this.dragStarted && (eventArgs.Button & MouseButtons.
Left
) > 0 && (Math.Abs(this.dragInitiationPoint.X - logicalPoint.X) > SystemInformation.DragSize.Width || Math.Abs(this.dragInitiationPoint.Y - logicalPoint.Y) > SystemInformation.DragSize.Height))
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (2)
48
if (eventArgs.Button == MouseButtons.
Left
)
65
if (!this.dragStarted && (eventArgs.Button & MouseButtons.
Left
) > 0 &&
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (2)
120
if ((eventArgs.Button & MouseButtons.
Left
) > 0)
248
if ((eventArgs.Button & MouseButtons.
Left
) > 0)
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (2)
65
if (eventArgs.Button == MouseButtons.
Left
)
72
if (this.panningActive && (eventArgs.Button & MouseButtons.
Left
) > 0)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (2)
26
if (eventArgs.Button == MouseButtons.
Left
)
74
if (this.designerToResize != null && eventArgs.Button == MouseButtons.
Left
)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (2)
80
if (eventArgs.Button == MouseButtons.
Left
)
115
if (eventArgs.Button == MouseButtons.
Left
&& CanContinueZooming)