88 references to PointToScreen
System.Windows.Forms (31)
System\Windows\Forms\Control.cs (2)
8755Point clientOffset = PointToScreen(Point.Empty); 11560Point screenLocation = PointToScreen(location);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
232if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
491&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
472&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1655if (clientRect.Contains(PointToScreen(PARAM.ToPoint(m.LParamInternal)))) 1789if (IsAccessibilityObjectCreated && _childEdit is not null && ChildEditAccessibleObject.Bounds.Contains(PointToScreen(e.Location))) 3702Point point = PointToScreen(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
18815Point pt = PointToScreen(Location);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
2422if (captured && PInvoke.WindowFromPoint(PointToScreen(point)) == HWND) 2462if (Capture && PInvoke.WindowFromPoint(PointToScreen((Point)m.LParamInternal)) == HWND)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5930Point screenPoint = PointToScreen(point);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
456Point point = PointToScreen(new(rect.X, rect.Y)); 1419Point location = PointToScreen(new Point(0, 0)); 2594Point screenPoint = EditTextBox.PointToScreen(e.Location); 3438Point editPoint = PointToScreen(_lastMouseDown); 3447_rowSelectPos = PointToScreen(_lastMouseDown); 3786Point location = parent.PointToScreen(new(rect.left, rect.top));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
397_dragStart = PointToScreen(new Point(e.X, e.Y)); 429Point dragPoint = PointToScreen(new Point(e.X, e.Y));
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1466if (!ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
183public override Point PointToScreen(Point pt) => Owner is not null ? Owner.PointToScreen(pt) : Point.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1827_displayLocation = control.PointToScreen(position); 1835_displayLocation = CalculateDropDownLocation(control.PointToScreen(position), direction).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3473toPoint = parent.PointToScreen(fromPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
304return new Rectangle(Owner.ParentInternal.PointToScreen(bounds.Location), bounds.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
955Point cursorLoc = toolStripToDrag.PointToScreen(toolStripToDrag.GripRectangle.Location);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2930bounds.Location = PointToScreen(bounds.Location);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
696if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
226if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
66if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System.Windows.Forms.Design (19)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
346Point editorLocation = ActionPanel.PointToScreen(EditRegionLocation); 370Point editorLocation = ActionPanel.PointToScreen(EditRegionLocation);
System\ComponentModel\Design\DesignerActionUI.cs (1)
683glyphLocationScreenCoord = compTray.PointToScreen(glyph.Bounds.Location);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
164Point location = PointToScreen(Location);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
255public Point AdornerWindowPointToScreen(Point p) => _adornerWindow.PointToScreen(p);
System\Windows\Forms\Design\ComponentTray.cs (2)
2161_mouseDragLast = PointToScreen(new Point(me.X, me.Y)); 2194Point newPt = PointToScreen(new Point(me.X, me.Y));
System\Windows\Forms\Design\ControlDesigner.cs (4)
2091paintRect.Location = Control.PointToScreen(paintRect.Location); 2118Rectangle controlScreenBounds = new(parent.PointToScreen(Control.Location), Control.Size); 2119Rectangle clientAreaScreenBounds = new(Control.PointToScreen(Point.Empty), Control.ClientSize); 2381pt = Control.PointToScreen(pt);
System\Windows\Forms\Design\DesignerFrame.cs (1)
484overlayControlScreenBounds.Location = overlayControl.PointToScreen(overlayControl.Location);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
193Point offset = Control.PointToScreen(Point.Empty); 803Point controlOffset = Control.PointToScreen(Point.Empty);
System\Windows\Forms\Design\SelectionUIService.cs (3)
519Point anchor = PointToScreen(new Point(me.X, me.Y)); 606Point screenCoord = PointToScreen(new Point(me.X, me.Y)); 718Point screenCoord = PointToScreen(new Point(me.X, me.Y));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
969Point startingPoint = Table.PointToScreen(Table.DisplayRectangle.Location);
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
93public Point AdornerWindowPointToScreen(Point p) => _toolStripAdornerWindow.PointToScreen(p);
System.Windows.Forms.Tests (10)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2628point = button.PointToScreen(point); 2659point = comboBox.PointToScreen(point);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (2)
1159listView.PointToScreen(listView.GetItemRect(0, ItemBoundsPortion.Label).Location); 1207listView.PointToScreen(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
System\Windows\Forms\ControlTests.Methods.cs (2)
12555Point p = control.PointToScreen(new Point(5, 5)); 12629Point p = control.PointToScreen(new Point(5, 5));
System\Windows\Forms\WebBrowserTests.cs (2)
4524Point p = control.PointToScreen(new Point(5, 5)); 4598Point p = control.PointToScreen(new Point(5, 5));
TextBoxBaseTests.cs (2)
6973Point p = control.PointToScreen(new Point(5, 5)); 7054Point p = control.PointToScreen(new Point(5, 5));
System.Windows.Forms.UI.IntegrationTests (28)
ButtonTests.cs (7)
121await MoveMouseAsync(form, form.PointToScreen(mouseDragHandleOnForm)); 145await MoveMouseAsync(form, form.PointToScreen(mouseDragHandleOnForm)); 171await MoveMouseAsync(form, form.PointToScreen(mouseDragHandleOnForm)); 201await MoveMouseAsync(form, form.PointToScreen(mouseDragHandleOnForm)); 259Point centerOnScreen = control2.PointToScreen(centerOfRect); 292Point centerOnScreen = control2.PointToScreen(centerOfRect); 295Point centerOnScreen1 = control1.PointToScreen(centerOfRect1);
DataGridViewTests.cs (2)
29Point targetPoint = ToVirtualPoint(dataGridView.PointToScreen(cellCenter)); 57Point targetPoint = ToVirtualPoint(dataGridView.PointToScreen(cellCenter));
DesignBehaviorsTests.cs (1)
101var dndStartCoordinates = treeView.PointToScreen(node.Bounds.Location);
DragDropTests.cs (9)
42var targetMousePosition = ToVirtualPoint(form.ListDragTarget.PointToScreen(new Point(20, 20))); 102var startCoordinates = form.PointToScreen(GetCenter(startRect)); 194Point endCoordinates = dragDropForm.RichTextBoxDropTarget.PointToScreen(GetCenter(endRect)); 317var startCoordinates = form.PointToScreen(GetCenter(startRect)); 379var startCoordinates = form.ListDragSource.PointToScreen(GetCenter(startRect)); 381var endCoordinates = form.ListDragTarget.PointToScreen(GetCenter(endRect)); 431Point startCoordinates = form.PictureBoxDragSource.PointToScreen(new Point(20, 20)); 467Point toolStripItemCoordinates = form.ToolStrip.PointToScreen(new Point(5, 5)); 527var startCoordinates = form.PointToScreen(GetCenter(startRect));
Infra\ControlTestBase.cs (1)
177var centerOnScreen = control.PointToScreen(centerOfRect);
ListBoxAccesibleObjectTests.cs (2)
39Point testPoint = listBox.PointToScreen(new Point(0, listBox.ClientRectangle.Height - 1)); 55Point testPoint = listBox.PointToScreen(new Point(itemBounds.Left + 1, itemBounds.Top + 1));
ListViewTests.cs (1)
300listView.PointToScreen(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
MonthCalendarTests.cs (1)
144var centerOnScreen = calendar.PointToScreen(centerOfRect);
RichTextBoxTests.cs (3)
38Point pt = richTextBox.PointToScreen(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("Click link #2", StringComparison.Ordinal))); 98Point pt = richTextBox.PointToScreen(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("#link2#custom link", StringComparison.Ordinal))); 158Point pt = richTextBox.PointToScreen(richTextBox.GetPositionFromCharIndex(
TabControlTests.cs (1)
69await MoveMouseAsync(form, tabControl.PointToScreen(point), assertCorrectLocation);