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