89 references to PointToClient
System.Windows.Forms (56)
System\Windows\Forms\Control.cs (3)
2216private protected virtual bool IsHoveredWithMouse() => ClientRectangle.Contains(PointToClient(MousePosition)); 11084client = PointToClient(new Point(x, y)); 11586PointToClient(PARAM.ToPoint(m.LParamInternal)),
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
161Point pt = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2176Point ptMouse = PointToClient(MousePosition); 2190Point ptMouse = PointToClient(MousePosition); 2202Point ptMouse = PointToClient(MousePosition); 3852activate &= ClientRectangle.Contains(PointToClient(mouseCoord));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
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); 29966client = PointToClient(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1799bool newMouseInDropDownButtonBounds = dropDownButtonRect.Contains(DataGridView.PointToClient(Control.MousePosition));
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
65Point p = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ListView\ListView.cs (6)
2181pt = PointToClient(point) 4371pos = PointToClient(pos); 5821pt = PointToClient(Cursor.Position) 5863pt = PointToClient(Cursor.Position) 6324pt = PointToClient(Cursor.Position) 6647pos = PointToClient(pos);
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
292Point point = owningListView.PointToClient(hitTestPoint);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
255Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
395Point point = owner.PointToClient(new Point(xScreen, yScreen));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
30Point clientPoint = owningPropertyGrid.PointToClient(new Point((int)x, (int)y));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3439editPoint = EditTextBox.PointToClient(editPoint); 5254mouseLoc = PointToClient(mouseLoc);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2054client = PointToClient(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
566if (sizeGripBounds.Contains(PointToClient(PARAM.ToPoint(m.LParamInternal)))) 632if (ClientRectangle.Contains(PointToClient(PARAM.ToPoint(m.LParamInternal))))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4515PointToClient(cursorLocation), 4593Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
30Point clientHit = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1006? ParentInternal.PointToClient(dropDownItem.DropDownLocation) 1763bounds.Location = toolStrip.PointToClient(bounds.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
57return _owner.GetItemAt(_owner.PointToClient(new Point(x, y)));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3455toPoint = parent.PointToClient(fromPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
596toolStripPanel.DragBounds.Contains(toolStripPanel.PointToClient(screenLocation)))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
786Point clientLocation = PointToClient(screenLocation); 819Point currentCursorLoc = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
109Rectangle itemBounds = new(ToolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
26ShowItemDropPoint(_owner.PointToClient(new Point(e.X, e.Y))); 40OnDropItem(item, _owner.PointToClient(new Point(e.X, e.Y))); 48if (ShowItemDropPoint(_owner.PointToClient(new Point(e.X, e.Y))))
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
2062pt = PointToClient(Cursor.Position) 2923pt = PointToClient(Cursor.Position) 2954pt = PointToClient(Cursor.Position) 3028Point pos = PointToClient(Cursor.Position); 3117menu.ShowInternal(this, PointToClient(MousePosition), isKeyboardActivated: false);
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
64Point p = owningTreeView.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1360client = PointToClient(location);
System\Windows\Forms\Form.cs (1)
6902Point point = PointToClient(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\ToolTip\ToolTip.cs (2)
1058pt = current.PointToClient(screenCoords); 1335associatedControl.PointToClient(p);
System.Windows.Forms.Design (31)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
179if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location)) 282if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)))
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
43Point point = palette.PointToClient(new(x, y));
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (3)
211point = PointToClient(point); 247point = PointToClient(point); 319Point pt1 = PointToClient(default);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
179Point pt = adornerWindow.PointToClient(new Point(x, y));
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
465public Point ScreenToAdornerWindow(Point p) => _adornerWindow.PointToClient(p);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
448initialDropPoint = ((Control)_dragComponents[_primaryComponentIndex].dragComponent).Parent.PointToClient(initialDropPoint); 824dropPoint = target.PointToClient(dropPoint);
System\Windows\Forms\Design\ComponentTray.cs (3)
1069_mouseDropLocation = PointToClient(new Point(de.X, de.Y)); 1636location.Offset(PointToClient(default)); 2552Point pt1 = PointToClient(default);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2386pt = Control.Parent!.PointToClient(pt);
System\Windows\Forms\Design\DesignerFrame.cs (1)
466Rectangle invalidateRect = new(overlayControl.PointToClient(screenRectangle.Location), screenRectangle.Size);
System\Windows\Forms\Design\ListViewDesigner.cs (1)
78Point listViewPoint = Control.PointToClient(point);
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
465c.PointToClient(new Point(initialX, initialY)); 758Point dropPt = Destination.GetDesignerControl().PointToClient(new Point(de.X, de.Y)); 965Point convertedPoint = Destination.GetDesignerControl().PointToClient(new Point(de.X, de.Y));
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
464location = Control.PointToClient(location); 1823location = Control.PointToClient(location); 2014offset = Control.PointToClient(offset);
System\Windows\Forms\Design\SelectionUIService.cs (2)
208Point pt = PointToClient(value); 791Point clientCoords = PointToClient(pt);
System\Windows\Forms\Design\TabControlDesigner.cs (2)
180Point hitTest = Control.PointToClient(point); 572Point dropPoint = Control.PointToClient(new Point(de.X, de.Y));
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1392point = Control.PointToClient(point); 1804offset = parentToolStrip.PointToClient(offset);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
534position = _treeView1.PointToClient(position); 577position = _treeView1.PointToClient(position);
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
52point = Control.PointToClient(point);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
808ListDragTarget.IndexFromPoint(ListDragTarget.PointToClient(new Point(e.X, e.Y)));
WinFormsControlsTest (1)
ListViewTest.cs (1)
30pos = PointToClient(pos);