112 references to Button
System.Web.Mobile (4)
UI\MobileControls\Design\StylesEditorDialog.cs (2)
933
if (e.
Button
== MouseButtons.Right)
942
if (e.
Button
== MouseButtons.Right)
UI\MobileControls\Design\Util\EditableTreeList.cs (2)
276
if (e.
Button
== MouseButtons.Right)
285
if (e.
Button
== MouseButtons.Right)
System.Windows.Forms (80)
winforms\Managed\System\WinForms\Button.cs (1)
297
if (mevent.
Button
== MouseButtons.Left && MouseIsPressed) {
winforms\Managed\System\WinForms\ButtonBase.cs (2)
873
if (mevent.
Button
!= MouseButtons.None && GetFlag(FlagMousePressed)) {
902
if (mevent.
Button
== MouseButtons.Left) {
winforms\Managed\System\WinForms\CheckBox.cs (1)
644
if (mevent.
Button
== MouseButtons.Left && MouseIsPressed) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
4026
if (e.
Button
!= MouseButtons.Left)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (4)
485
return e.
Button
== MouseButtons.Left;
503
return e.
Button
== MouseButtons.Left;
565
if (e.
Button
== MouseButtons.Left && mouseInContentBounds)
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\DataGridViewCellMouseEventArgs.cs (1)
25
MouseEventArgs e) : base(e.
Button
, e.Clicks, localX, localY, e.Delta)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
880
return e.
Button
== MouseButtons.Left;
898
return e.
Button
== MouseButtons.Left;
997
if (e.
Button
== MouseButtons.Left && mouseInContentBounds)
1075
if (e.
Button
== MouseButtons.Left)
winforms\Managed\System\WinForms\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
15
public DataGridViewColumnDividerDoubleClickEventArgs(int columnIndex, HandledMouseEventArgs e) : base(e.
Button
, e.Clicks, e.X, e.Y, e.Delta, e.Handled)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (4)
531
return e.
Button
== MouseButtons.Left && this.DataGridView.ApplyVisualStylesToHeaderCells;
551
return e.
Button
== MouseButtons.Left && this.DataGridView.ApplyVisualStylesToHeaderCells;
561
if (e.
Button
== MouseButtons.Left &&
617
if (e.
Button
== MouseButtons.Left && this.DataGridView.ApplyVisualStylesToHeaderCells)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (23)
5814
MouseEventArgs me = new MouseEventArgs(e.
Button
,
5836
e.
Button
== this.lastMouseClickInfo.button &&
5845
me = new MouseEventArgs(e.
Button
,
5866
if (e.
Button
== MouseButtons.Left &&
5896
me = new MouseEventArgs(e.
Button
,
5918
if (e.
Button
== MouseButtons.Left &&
5927
if (e.
Button
== MouseButtons.Left &&
5961
MouseEventArgs meTmp = new MouseEventArgs(e.
Button
,
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)
16451
HandledMouseEventArgs hme = new HandledMouseEventArgs(e.
Button
, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/);
16464
HandledMouseEventArgs hme = new HandledMouseEventArgs(e.
Button
, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/);
16487
HandledMouseEventArgs hme = new HandledMouseEventArgs(e.
Button
, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/);
16500
HandledMouseEventArgs hme = new HandledMouseEventArgs(e.
Button
, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/);
16807
MouseEventArgs meTmp = new MouseEventArgs(e.
Button
, 2, e.X, e.Y, e.Delta);
18075
if (!e.Handled && e.
Button
== MouseButtons.Left && e.RowIndex < this.Rows.Count)
25557
this.lastMouseClickInfo.button = dgvcme.
Button
;
winforms\Managed\System\WinForms\DataGridViewRowDividerDoubleClickEventArgs.cs (1)
15
public DataGridViewRowDividerDoubleClickEventArgs(int rowIndex, HandledMouseEventArgs e) : base(e.
Button
, e.Clicks, e.X, e.Y, e.Delta, e.Handled)
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\LinkLabel.cs (1)
1048
OnLinkClicked(new LinkLabelLinkClickedEventArgs(clicked, e.
Button
));
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
2791
this.OnMouseMove(new MouseEventArgs(me.
Button
, me.Clicks, newPt.X, newPt.Y, me.Delta));
2805
this.OnMouseDown(new MouseEventArgs(me.
Button
, me.Clicks, newPt.X, newPt.Y, me.Delta));
3144
if (target != null && me.
Button
== MouseButtons.Left) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
3170
if (me.
Button
== MouseButtons.Left && SplitterInside(me.X,me.Y) && totalProps != 0) {
3206
if (me.
Button
== MouseButtons.Left) {
3207
gridEntry.OnMouseClick(me.X - r.X, me.Y - r.Y, me.Clicks, me.
Button
);
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\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\TextBoxBase.cs (1)
1686
if (mevent.
Button
== MouseButtons.Left) {
winforms\Managed\System\WinForms\ToolStrip.cs (3)
3501
mea = new MouseEventArgs(mea.
Button
, mea.Clicks,itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
3564
mea = new MouseEventArgs(mea.
Button
, mea.Clicks,itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
3611
mea = new MouseEventArgs(mea.
Button
, mea.Clicks,itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
127
(e.
Button
== MouseButtons.Left)) {
143
(e.
Button
== MouseButtons.Left)) {
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
2927
if (e.
Button
== MouseButtons.Left) {
2954
if (e.
Button
== MouseButtons.Left || (e.
Button
== MouseButtons.Right && state[stateSupportsRightClick])) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
971
if (e.
Button
== MouseButtons.Left ||
972
(e.
Button
== MouseButtons.Right && SupportsRightClick)) {
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\UpDownBase.cs (9)
949
if (e.Clicks == 2 && e.
Button
== MouseButtons.Left) {
964
if (mevent.
Button
== MouseButtons.Left) {
1166
return new MouseEventArgs(e.
Button
, e.Clicks, point.x, point.y , e.Delta);
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 (28)
AuthoringOM\Design\ActivityDesigner.cs (8)
2591
OnMouseDown(new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
2608
OnMouseMove(new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
2625
OnMouseUp(new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
2642
OnMouseDoubleClick(new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
2659
OnMouseEnter(new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
2676
OnMouseHover(new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
2725
OnMouseDragBegin(initialPoint, new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
2742
OnMouseDragMove(new MouseEventArgs(e.
Button
, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
AuthoringOM\Design\DesignerWidgets.cs (2)
440
if (e.
Button
== MouseButtons.Left)
449
if (e.
Button
== MouseButtons.Left)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (3)
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\FreeFormDragDropManager.cs (1)
101
if (eventArgs.
Button
== MouseButtons.None)
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 (3)
26
if (eventArgs.
Button
== MouseButtons.Left)
61
else if (eventArgs.
Button
== MouseButtons.None)
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)