89 references to PointToClient
System.Windows.Forms (56)
System\Windows\Forms\Control.cs (3)
2217private protected virtual bool IsHoveredWithMouse() => ClientRectangle.Contains(PointToClient(MousePosition)); 11117client = PointToClient(new Point(x, y)); 11619PointToClient(PARAM.ToPoint(m.LParamInternal)),
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
160Point 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); 9635Point ptMouse = PointToClient(MousePosition); 16161bool mouseOverToolTipControl = _toolTipControl.Activated && ClientRectangle.Contains(PointToClient(MousePosition)); 26003Point ptMouse = PointToClient(MousePosition); 29165Point ptMouse = PointToClient(MousePosition); 29875Point ptMouse = PointToClient(MousePosition); 29985client = PointToClient(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1795bool newMouseInDropDownButtonBounds = dropDownButtonRect.Contains(DataGridView.PointToClient(Control.MousePosition));
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
64Point p = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ListView\ListView.cs (6)
2185pt = PointToClient(point) 4375pos = PointToClient(pos); 5825pt = PointToClient(Cursor.Position) 5867pt = PointToClient(Cursor.Position) 6328pt = PointToClient(Cursor.Position) 6651pos = 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)
394Point point = owner.PointToClient(new Point(xScreen, yScreen));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
29Point clientPoint = owningPropertyGrid.PointToClient(new Point((int)x, (int)y));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3439editPoint = EditTextBox.PointToClient(editPoint); 5250mouseLoc = PointToClient(mouseLoc);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2048client = 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), 4588Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
29Point clientHit = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1003? ParentInternal.PointToClient(dropDownItem.DropDownLocation) 1760bounds.Location = toolStrip.PointToClient(bounds.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
56return _owner.GetItemAt(_owner.PointToClient(new Point(x, y)));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3447toPoint = 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)
778Point clientLocation = PointToClient(screenLocation); 811Point 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)
2384pt = 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); 1824location = Control.PointToClient(location); 2015offset = 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); 573Point dropPoint = Control.PointToClient(new Point(de.X, de.Y));
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1391point = Control.PointToClient(point); 1803offset = 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)
867ListDragTarget.IndexFromPoint(ListDragTarget.PointToClient(new Point(e.X, e.Y)));
WinFormsControlsTest (1)
ListViewTest.cs (1)
30pos = PointToClient(pos);