45 references to MousePosition
System.Windows.Forms (31)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
124OnHelpRequested(new HelpEventArgs(MousePosition));
System\Windows\Forms\Control.cs (1)
2216private protected virtual bool IsHoveredWithMouse() => ClientRectangle.Contains(PointToClient(MousePosition));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1801Point p = MousePosition;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2176Point ptMouse = PointToClient(MousePosition); 2190Point ptMouse = PointToClient(MousePosition); 2202Point ptMouse = PointToClient(MousePosition); 3851Point mouseCoord = MousePosition;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
6023Point ptMouse = PointToClient(MousePosition); 9634Point ptMouse = PointToClient(MousePosition); 16142bool mouseOverToolTipControl = _toolTipControl.Activated && ClientRectangle.Contains(PointToClient(MousePosition)); 25983Point ptMouse = PointToClient(MousePosition); 29146Point ptMouse = PointToClient(MousePosition); 29856Point ptMouse = PointToClient(MousePosition);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1799bool newMouseInDropDownButtonBounds = dropDownButtonRect.Contains(DataGridView.PointToClient(Control.MousePosition));
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
70bool IKeyboardToolTip.IsHoveredWithMouse() => _listView?.AccessibilityObject.Bounds.Contains(Control.MousePosition) ?? false;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (8)
132MousePosition.X, 133MousePosition.Y, 138MousePosition.X, 139MousePosition.Y, 233MousePosition.X, 234MousePosition.Y, 239MousePosition.X, 240MousePosition.Y,
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
198if (tabControl.RectangleToScreen(tabControl.GetTabRect(i)).Contains(MousePosition)) 208return selectedTab.AccessibilityObject.Bounds.Contains(MousePosition);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3596=> ((IKeyboardToolTip)this).GetNativeScreenRectangle().Contains(Control.MousePosition);
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
45bool IKeyboardToolTip.IsHoveredWithMouse() => TreeView?.AccessibilityObject.Bounds.Contains(Control.MousePosition) ?? false;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3117menu.ShowInternal(this, PointToClient(MousePosition), isKeyboardActivated: false);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
97Rectangle screen = Screen.GetWorkingArea(Control.MousePosition);
System\Windows\Forms\Form.cs (2)
3669desktop = Screen.FromPoint(MousePosition); 3910desktop = !hWndOwner.IsNull ? Screen.FromHandle(hWndOwner) : Screen.FromPoint(MousePosition);
System.Windows.Forms.Design (10)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
618Point mouseLoc = Control.MousePosition;
System\Windows\Forms\Design\ComponentTray.cs (3)
641void ISelectionUIHandler.ShowContextMenu(IComponent component) => OnContextMenu(MousePosition); 1622location = MousePosition; 2542location = MousePosition;
System\Windows\Forms\Design\SelectionUIService.cs (3)
646EndMouseDrag(MousePosition); 857EndMouseDrag(MousePosition); 1159EndMouseDrag(MousePosition);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
1264Point dropPoint = GetCellPosition(Control.MousePosition); 1331_droppedCellPosition = GetCellPosition(Control.MousePosition); 1539_droppedCellPosition = GetCellPosition(Control.MousePosition);
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (4)
857if (((MousePosition.X - _screenOffset.X) < form.DesktopBounds.Left) || 858((MousePosition.X - _screenOffset.X) > form.DesktopBounds.Right) || 859((MousePosition.Y - _screenOffset.Y) < form.DesktopBounds.Top) || 860((MousePosition.Y - _screenOffset.Y) > form.DesktopBounds.Bottom))