88 references to PointToScreen
System.Windows.Forms (31)
System\Windows\Forms\Control.cs (2)
8811
Point clientOffset =
PointToScreen
(Point.Empty);
11631
Point screenLocation =
PointToScreen
(location);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
269
if (PInvoke.WindowFromPoint(
PointToScreen
(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
513
&& 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)
1655
if (clientRect.Contains(
PointToScreen
(PARAM.ToPoint(m.LParamInternal))))
1789
if (IsAccessibilityObjectCreated && _childEdit is not null && ChildEditAccessibleObject.Bounds.Contains(
PointToScreen
(e.Location)))
3702
Point point =
PointToScreen
(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
18809
Point pt =
PointToScreen
(Location);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
2422
if (captured && PInvoke.WindowFromPoint(
PointToScreen
(point)) == HWND)
2462
if (Capture && PInvoke.WindowFromPoint(
PointToScreen
((Point)m.LParamInternal)) == HWND)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6003
Point screenPoint =
PointToScreen
(point);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
456
Point point =
PointToScreen
(new(rect.X, rect.Y));
1419
Point location =
PointToScreen
(new Point(0, 0));
2604
Point screenPoint = EditTextBox.
PointToScreen
(e.Location);
3453
Point editPoint =
PointToScreen
(_lastMouseDown);
3462
_rowSelectPos =
PointToScreen
(_lastMouseDown);
3801
Point 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));
429
Point dragPoint =
PointToScreen
(new Point(e.X, e.Y));
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1489
if (!ValidationCancelled && PInvoke.WindowFromPoint(
PointToScreen
(mevent.Location)) == HWND)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
183
public 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)
3477
toPoint = parent.
PointToScreen
(fromPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
304
return new Rectangle(Owner.ParentInternal.
PointToScreen
(bounds.Location), bounds.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
955
Point cursorLoc = toolStripToDrag.
PointToScreen
(toolStripToDrag.GripRectangle.Location);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2930
bounds.Location =
PointToScreen
(bounds.Location);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
692
if (PInvoke.WindowFromPoint(
PointToScreen
(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
222
if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(
PointToScreen
(e.Location)) == HWND)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
66
if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(
PointToScreen
(e.Location)) == HWND)
System.Windows.Forms.Design (19)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
343
Point editorLocation = ActionPanel.
PointToScreen
(EditRegionLocation);
367
Point editorLocation = ActionPanel.
PointToScreen
(EditRegionLocation);
System\ComponentModel\Design\DesignerActionUI.cs (1)
683
glyphLocationScreenCoord = compTray.
PointToScreen
(glyph.Bounds.Location);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
164
Point location =
PointToScreen
(Location);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
255
public Point AdornerWindowPointToScreen(Point p) => _adornerWindow.
PointToScreen
(p);
System\Windows\Forms\Design\ComponentTray.cs (2)
2161
_mouseDragLast =
PointToScreen
(new Point(me.X, me.Y));
2194
Point newPt =
PointToScreen
(new Point(me.X, me.Y));
System\Windows\Forms\Design\ControlDesigner.cs (4)
2106
paintRect.Location = Control.
PointToScreen
(paintRect.Location);
2133
Rectangle controlScreenBounds = new(parent.
PointToScreen
(Control.Location), Control.Size);
2134
Rectangle clientAreaScreenBounds = new(Control.
PointToScreen
(Point.Empty), Control.ClientSize);
2396
pt = Control.
PointToScreen
(pt);
System\Windows\Forms\Design\DesignerFrame.cs (1)
484
overlayControlScreenBounds.Location = overlayControl.
PointToScreen
(overlayControl.Location);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
193
Point offset = Control.
PointToScreen
(Point.Empty);
803
Point controlOffset = Control.
PointToScreen
(Point.Empty);
System\Windows\Forms\Design\SelectionUIService.cs (3)
519
Point anchor =
PointToScreen
(new Point(me.X, me.Y));
606
Point screenCoord =
PointToScreen
(new Point(me.X, me.Y));
718
Point screenCoord =
PointToScreen
(new Point(me.X, me.Y));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
969
Point startingPoint = Table.
PointToScreen
(Table.DisplayRectangle.Location);
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
93
public Point AdornerWindowPointToScreen(Point p) => _toolStripAdornerWindow.
PointToScreen
(p);
System.Windows.Forms.Tests (10)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2630
point = button.
PointToScreen
(point);
2661
point = comboBox.
PointToScreen
(point);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (2)
1161
listView.
PointToScreen
(listView.GetItemRect(0, ItemBoundsPortion.Label).Location);
1209
listView.
PointToScreen
(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
System\Windows\Forms\ControlTests.Methods.cs (2)
12515
Point p = control.
PointToScreen
(new Point(5, 5));
12589
Point p = control.
PointToScreen
(new Point(5, 5));
System\Windows\Forms\WebBrowserTests.cs (2)
4526
Point p = control.
PointToScreen
(new Point(5, 5));
4600
Point p = control.
PointToScreen
(new Point(5, 5));
TextBoxBaseTests.cs (2)
6975
Point p = control.
PointToScreen
(new Point(5, 5));
7056
Point p = control.
PointToScreen
(new Point(5, 5));
System.Windows.Forms.UI.IntegrationTests (28)
ButtonTests.cs (7)
120
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
144
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
170
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
200
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
258
Point centerOnScreen = control2.
PointToScreen
(centerOfRect);
291
Point centerOnScreen = control2.
PointToScreen
(centerOfRect);
294
Point centerOnScreen1 = control1.
PointToScreen
(centerOfRect1);
DataGridViewTests.cs (2)
30
Point targetPoint = ToVirtualPoint(dataGridView.
PointToScreen
(cellCenter));
109
Point targetPoint = ToVirtualPoint(dataGridView.
PointToScreen
(cellCenter));
DesignBehaviorsTests.cs (1)
100
var dndStartCoordinates = treeView.
PointToScreen
(node.Bounds.Location);
DragDropTests.cs (9)
41
var targetMousePosition = ToVirtualPoint(form.ListDragTarget.
PointToScreen
(new Point(20, 20)));
101
var startCoordinates = form.
PointToScreen
(GetCenter(startRect));
193
Point endCoordinates = dragDropForm.RichTextBoxDropTarget.
PointToScreen
(GetCenter(endRect));
316
var startCoordinates = form.
PointToScreen
(GetCenter(startRect));
378
var startCoordinates = form.ListDragSource.
PointToScreen
(GetCenter(startRect));
380
var endCoordinates = form.ListDragTarget.
PointToScreen
(GetCenter(endRect));
430
Point startCoordinates = form.PictureBoxDragSource.
PointToScreen
(new Point(20, 20));
466
Point toolStripItemCoordinates = form.ToolStrip.
PointToScreen
(new Point(5, 5));
526
var startCoordinates = form.
PointToScreen
(GetCenter(startRect));
Infra\ControlTestBase.cs (1)
168
var centerOnScreen = control.
PointToScreen
(centerOfRect);
ListBoxAccesibleObjectTests.cs (2)
39
Point testPoint = listBox.
PointToScreen
(new Point(0, listBox.ClientRectangle.Height - 1));
55
Point testPoint = listBox.
PointToScreen
(new Point(itemBounds.Left + 1, itemBounds.Top + 1));
ListViewTests.cs (1)
327
listView.
PointToScreen
(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
MonthCalendarTests.cs (1)
143
var centerOnScreen = calendar.
PointToScreen
(centerOfRect);
RichTextBoxTests.cs (3)
37
Point pt = richTextBox.
PointToScreen
(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("Click link #2", StringComparison.Ordinal)));
97
Point pt = richTextBox.
PointToScreen
(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("#link2#custom link", StringComparison.Ordinal)));
157
Point pt = richTextBox.
PointToScreen
(richTextBox.GetPositionFromCharIndex(
TabControlTests.cs (1)
68
await MoveMouseAsync(form, tabControl.
PointToScreen
(point), assertCorrectLocation);