88 references to PointToScreen
System.Windows.Forms (31)
System\Windows\Forms\Control.cs (2)
8755
Point clientOffset =
PointToScreen
(Point.Empty);
11560
Point screenLocation =
PointToScreen
(location);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
232
if (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)
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)
18815
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)
5930
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));
2594
Point screenPoint = EditTextBox.
PointToScreen
(e.Location);
3438
Point editPoint =
PointToScreen
(_lastMouseDown);
3447
_rowSelectPos =
PointToScreen
(_lastMouseDown);
3786
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)
1466
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)
1827
_displayLocation = control.
PointToScreen
(position);
1835
_displayLocation = CalculateDropDownLocation(control.
PointToScreen
(position), direction).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3473
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)
696
if (PInvoke.WindowFromPoint(
PointToScreen
(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
226
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)
346
Point editorLocation = ActionPanel.
PointToScreen
(EditRegionLocation);
370
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)
2091
paintRect.Location = Control.
PointToScreen
(paintRect.Location);
2118
Rectangle controlScreenBounds = new(parent.
PointToScreen
(Control.Location), Control.Size);
2119
Rectangle clientAreaScreenBounds = new(Control.
PointToScreen
(Point.Empty), Control.ClientSize);
2381
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)
2628
point = button.
PointToScreen
(point);
2659
point = comboBox.
PointToScreen
(point);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (2)
1159
listView.
PointToScreen
(listView.GetItemRect(0, ItemBoundsPortion.Label).Location);
1207
listView.
PointToScreen
(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
System\Windows\Forms\ControlTests.Methods.cs (2)
12555
Point p = control.
PointToScreen
(new Point(5, 5));
12629
Point p = control.
PointToScreen
(new Point(5, 5));
System\Windows\Forms\WebBrowserTests.cs (2)
4524
Point p = control.
PointToScreen
(new Point(5, 5));
4598
Point p = control.
PointToScreen
(new Point(5, 5));
TextBoxBaseTests.cs (2)
6973
Point p = control.
PointToScreen
(new Point(5, 5));
7054
Point p = control.
PointToScreen
(new Point(5, 5));
System.Windows.Forms.UI.IntegrationTests (28)
ButtonTests.cs (7)
121
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
145
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
171
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
201
await MoveMouseAsync(form, form.
PointToScreen
(mouseDragHandleOnForm));
259
Point centerOnScreen = control2.
PointToScreen
(centerOfRect);
292
Point centerOnScreen = control2.
PointToScreen
(centerOfRect);
295
Point centerOnScreen1 = control1.
PointToScreen
(centerOfRect1);
DataGridViewTests.cs (2)
29
Point targetPoint = ToVirtualPoint(dataGridView.
PointToScreen
(cellCenter));
57
Point targetPoint = ToVirtualPoint(dataGridView.
PointToScreen
(cellCenter));
DesignBehaviorsTests.cs (1)
101
var dndStartCoordinates = treeView.
PointToScreen
(node.Bounds.Location);
DragDropTests.cs (9)
42
var targetMousePosition = ToVirtualPoint(form.ListDragTarget.
PointToScreen
(new Point(20, 20)));
102
var startCoordinates = form.
PointToScreen
(GetCenter(startRect));
194
Point endCoordinates = dragDropForm.RichTextBoxDropTarget.
PointToScreen
(GetCenter(endRect));
317
var startCoordinates = form.
PointToScreen
(GetCenter(startRect));
379
var startCoordinates = form.ListDragSource.
PointToScreen
(GetCenter(startRect));
381
var endCoordinates = form.ListDragTarget.
PointToScreen
(GetCenter(endRect));
431
Point startCoordinates = form.PictureBoxDragSource.
PointToScreen
(new Point(20, 20));
467
Point toolStripItemCoordinates = form.ToolStrip.
PointToScreen
(new Point(5, 5));
527
var startCoordinates = form.
PointToScreen
(GetCenter(startRect));
Infra\ControlTestBase.cs (1)
177
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)
300
listView.
PointToScreen
(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
MonthCalendarTests.cs (1)
144
var centerOnScreen = calendar.
PointToScreen
(centerOfRect);
RichTextBoxTests.cs (3)
38
Point pt = richTextBox.
PointToScreen
(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("Click link #2", StringComparison.Ordinal)));
98
Point pt = richTextBox.
PointToScreen
(richTextBox.GetPositionFromCharIndex(richTextBox.Text.IndexOf("#link2#custom link", StringComparison.Ordinal)));
158
Point pt = richTextBox.
PointToScreen
(richTextBox.GetPositionFromCharIndex(
TabControlTests.cs (1)
69
await MoveMouseAsync(form, tabControl.
PointToScreen
(point), assertCorrectLocation);