50 references to PointToScreen
System.Windows.Forms (31)
System\Windows\Forms\Control.cs (2)
8832Point clientOffset = PointToScreen(Point.Empty); 11669Point screenLocation = PointToScreen(location);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
268if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
511&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
489&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
1660if (clientRect.Contains(PointToScreen(PARAM.ToPoint(m.LParamInternal)))) 1794if (IsAccessibilityObjectCreated && _childEdit is not null && ChildEditAccessibleObject.Bounds.Contains(PointToScreen(e.Location))) 3728Point point = PointToScreen(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
18806Point pt = PointToScreen(Location);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
2420if (captured && PInvoke.WindowFromPoint(PointToScreen(point)) == HWND) 2460if (Capture && PInvoke.WindowFromPoint(PointToScreen((Point)m.LParamInternal)) == HWND)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5994Point screenPoint = PointToScreen(point);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
479Point point = PointToScreen(new(rect.X, rect.Y)); 1442Point location = PointToScreen(new Point(0, 0)); 2627Point screenPoint = EditTextBox.PointToScreen(e.Location); 3476Point editPoint = PointToScreen(_lastMouseDown); 3485_rowSelectPos = PointToScreen(_lastMouseDown); 3824Point 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)
1483if (!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)
1824_displayLocation = control.PointToScreen(position); 1832_displayLocation = CalculateDropDownLocation(control.PointToScreen(position), direction).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3474toPoint = 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)
2917bounds.Location = PointToScreen(bounds.Location);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
694if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
234if (!_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)
343Point editorLocation = ActionPanel.PointToScreen(EditRegionLocation); 367Point 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)
2143_mouseDragLast = PointToScreen(new Point(me.X, me.Y)); 2176Point newPt = PointToScreen(new Point(me.X, me.Y));
System\Windows\Forms\Design\ControlDesigner.cs (4)
2106paintRect.Location = Control.PointToScreen(paintRect.Location); 2133Rectangle controlScreenBounds = new(parent.PointToScreen(Control.Location), Control.Size); 2134Rectangle clientAreaScreenBounds = new(Control.PointToScreen(Point.Empty), Control.ClientSize); 2396pt = Control.PointToScreen(pt);
System\Windows\Forms\Design\DesignerFrame.cs (1)
481overlayControlScreenBounds.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)
513Point anchor = PointToScreen(new Point(me.X, me.Y)); 600Point screenCoord = PointToScreen(new Point(me.X, me.Y)); 712Point screenCoord = PointToScreen(new Point(me.X, me.Y));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
963Point startingPoint = Table.PointToScreen(Table.DisplayRectangle.Location);
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
87public Point AdornerWindowPointToScreen(Point p) => _toolStripAdornerWindow.PointToScreen(p);