112 references to Button
System.Web.Mobile (4)
UI\MobileControls\Design\StylesEditorDialog.cs (2)
933if (e.Button == MouseButtons.Right) 942if (e.Button == MouseButtons.Right)
UI\MobileControls\Design\Util\EditableTreeList.cs (2)
276if (e.Button == MouseButtons.Right) 285if (e.Button == MouseButtons.Right)
System.Windows.Forms (80)
winforms\Managed\System\WinForms\Button.cs (1)
297if (mevent.Button == MouseButtons.Left && MouseIsPressed) {
winforms\Managed\System\WinForms\ButtonBase.cs (2)
873if (mevent.Button != MouseButtons.None && GetFlag(FlagMousePressed)) { 902if (mevent.Button == MouseButtons.Left) {
winforms\Managed\System\WinForms\CheckBox.cs (1)
644if (mevent.Button == MouseButtons.Left && MouseIsPressed) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
4026if (e.Button != MouseButtons.Left)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (4)
485return e.Button == MouseButtons.Left; 503return e.Button == MouseButtons.Left; 565if (e.Button == MouseButtons.Left && mouseInContentBounds) 643if (e.Button == MouseButtons.Left)
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
3461if (e.Button == MouseButtons.Left && GetContentBounds(e.RowIndex).Contains(x, y))
winforms\Managed\System\WinForms\DataGridViewCellMouseEventArgs.cs (1)
25MouseEventArgs e) : base(e.Button, e.Clicks, localX, localY, e.Delta)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
880return e.Button == MouseButtons.Left; 898return e.Button == MouseButtons.Left; 997if (e.Button == MouseButtons.Left && mouseInContentBounds) 1075if (e.Button == MouseButtons.Left)
winforms\Managed\System\WinForms\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
15public 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)
531return e.Button == MouseButtons.Left && this.DataGridView.ApplyVisualStylesToHeaderCells; 551return e.Button == MouseButtons.Left && this.DataGridView.ApplyVisualStylesToHeaderCells; 561if (e.Button == MouseButtons.Left && 617if (e.Button == MouseButtons.Left && this.DataGridView.ApplyVisualStylesToHeaderCells)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (23)
5814MouseEventArgs me = new MouseEventArgs(e.Button, 5836e.Button == this.lastMouseClickInfo.button && 5845me = new MouseEventArgs(e.Button, 5866if (e.Button == MouseButtons.Left && 5896me = new MouseEventArgs(e.Button, 5918if (e.Button == MouseButtons.Left && 5927if (e.Button == MouseButtons.Left && 5961MouseEventArgs meTmp = new MouseEventArgs(e.Button, 12280if (!this.dataGridViewState2[DATAGRIDVIEWSTATE2_messageFromEditingCtrls] && e.Button == MouseButtons.Left) 12328if (!this.dataGridViewState2[DATAGRIDVIEWSTATE2_messageFromEditingCtrls] && e.Button == MouseButtons.Left) 13019e.Button == MouseButtons.Left && 13936if (!e.Handled && e.Button == MouseButtons.Left && e.ColumnIndex < this.Columns.Count) 14107if (e.Button == MouseButtons.Left && 15446me.Button == MouseButtons.Left) 16328(e.Button != MouseButtons.Left || 16346if (e.Button == MouseButtons.Left) 16451HandledMouseEventArgs hme = new HandledMouseEventArgs(e.Button, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/); 16464HandledMouseEventArgs hme = new HandledMouseEventArgs(e.Button, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/); 16487HandledMouseEventArgs hme = new HandledMouseEventArgs(e.Button, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/); 16500HandledMouseEventArgs hme = new HandledMouseEventArgs(e.Button, e.Clicks, e.X, e.Y, e.Delta, false /*defaultHandledValue*/); 16807MouseEventArgs meTmp = new MouseEventArgs(e.Button, 2, e.X, e.Y, e.Delta); 18075if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex < this.Rows.Count) 25557this.lastMouseClickInfo.button = dgvcme.Button;
winforms\Managed\System\WinForms\DataGridViewRowDividerDoubleClickEventArgs.cs (1)
15public 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)
604if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.RowIndex && e.Button == MouseButtons.Left)
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1048OnLinkClicked(new LinkLabelLinkClickedEventArgs(clicked, e.Button));
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
2791this.OnMouseMove(new MouseEventArgs(me.Button, me.Clicks, newPt.X, newPt.Y, me.Delta)); 2805this.OnMouseDown(new MouseEventArgs(me.Button, me.Clicks, newPt.X, newPt.Y, me.Delta)); 3144if (target != null && me.Button == MouseButtons.Left) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
3170if (me.Button == MouseButtons.Left && SplitterInside(me.X,me.Y) && totalProps != 0) { 3206if (me.Button == MouseButtons.Left) { 3207gridEntry.OnMouseClick(me.X - r.X, me.Y - r.Y, me.Clicks, me.Button); 5788if (e.Button == MouseButtons.Left) { 5896if (e.Button == MouseButtons.Left) {
winforms\Managed\System\WinForms\RadioButton.cs (1)
571if (mevent.Button == MouseButtons.Left && GetStyle(ControlStyles.UserPaint)) {
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1319if (e.Button == MouseButtons.Left && e.Clicks == 1 && !IsSplitterFixed) {
winforms\Managed\System\WinForms\Splitter.cs (1)
879if (e.Button == MouseButtons.Left && e.Clicks == 1) {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
1686if (mevent.Button == MouseButtons.Left) {
winforms\Managed\System\WinForms\ToolStrip.cs (3)
3491mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3554mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3601mea = 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)
2927if (e.Button == MouseButtons.Left) { 2954if (e.Button == MouseButtons.Left || (e.Button == MouseButtons.Right && state[stateSupportsRightClick])) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
971if (e.Button == MouseButtons.Left || 972(e.Button == MouseButtons.Right && SupportsRightClick)) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
515if (e.Button == MouseButtons.Left) { 544if (e.Button == MouseButtons.Left) { 557if ((e.Button == MouseButtons.Left) && this.SplitButtonButton.Bounds.Contains(clickPoint)) {
winforms\Managed\System\WinForms\UpDownBase.cs (9)
949if (e.Clicks == 2 && e.Button == MouseButtons.Left) { 964if (mevent.Button == MouseButtons.Left) { 1166return new MouseEventArgs(e.Button, e.Clicks, point.x, point.y , e.Delta); 1292if (e.Clicks == 2 && e.Button == MouseButtons.Left) { 1310if (e.Button == MouseButtons.Left) { 1538if (!parent.ValidationCancelled && e.Button == MouseButtons.Left) { 1541if (e.Clicks == 2 && e.Button == MouseButtons.Left) { 1643if (!parent.ValidationCancelled && e.Button == MouseButtons.Left) { 1656if (e.Button == MouseButtons.Left) {
System.Workflow.ComponentModel (28)
AuthoringOM\Design\ActivityDesigner.cs (8)
2591OnMouseDown(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta)); 2608OnMouseMove(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta)); 2625OnMouseUp(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta)); 2642OnMouseDoubleClick(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta)); 2659OnMouseEnter(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta)); 2676OnMouseHover(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta)); 2725OnMouseDragBegin(initialPoint, new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta)); 2742OnMouseDragMove(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.Y, e.Delta));
AuthoringOM\Design\DesignerWidgets.cs (2)
440if (e.Button == MouseButtons.Left) 449if (e.Button == MouseButtons.Left)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (3)
83if ((eventArgs.Button & MouseButtons.Left) == MouseButtons.Left) 121if ((eventArgs.Button & MouseButtons.Left) == MouseButtons.Left) 198if ((eventArgs.Button & MouseButtons.Left) == MouseButtons.Left)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (3)
88if (eventArgs.Button == MouseButtons.Left) 108if (eventArgs.Button == MouseButtons.Left) 117else 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)
48if (eventArgs.Button == MouseButtons.Left) 65if (!this.dragStarted && (eventArgs.Button & MouseButtons.Left) > 0 &&
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (2)
120if ((eventArgs.Button & MouseButtons.Left) > 0) 248if ((eventArgs.Button & MouseButtons.Left) > 0)
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
101if (eventArgs.Button == MouseButtons.None)
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (2)
65if (eventArgs.Button == MouseButtons.Left) 72if (this.panningActive && (eventArgs.Button & MouseButtons.Left) > 0)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (3)
26if (eventArgs.Button == MouseButtons.Left) 61else if (eventArgs.Button == MouseButtons.None) 74if (this.designerToResize != null && eventArgs.Button == MouseButtons.Left)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (2)
80if (eventArgs.Button == MouseButtons.Left) 115if (eventArgs.Button == MouseButtons.Left && CanContinueZooming)