14 references to FromPoint
System.Windows.Forms (10)
System\Windows\Forms\Form.cs (2)
3669
desktop = Screen.
FromPoint
(MousePosition);
3910
desktop = !hWndOwner.IsNull ? Screen.FromHandle(hWndOwner) : Screen.
FromPoint
(MousePosition);
System\Windows\Forms\Screen.cs (2)
283
public static Rectangle GetWorkingArea(Point pt) =>
FromPoint
(pt).WorkingArea;
298
public static Rectangle GetBounds(Point pt) =>
FromPoint
(pt).Bounds;
System\Windows\Forms\ToolTip\ToolTip.cs (6)
1317
Screen screen = Screen.
FromPoint
(cursorLocation);
1930
Screen screen = Screen.
FromPoint
(moveToLocation);
2086
Screen screen = Screen.
FromPoint
(Cursor.Position);
2182
Screen screen = Screen.
FromPoint
(cursorPos);
2204
Screen screen = Screen.
FromPoint
(tipInfo.Position);
2239
Screen screen = Screen.
FromPoint
(Cursor.Position);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
234
Rectangle rectScreen = Screen.
FromPoint
(rectangleAnchor.Location).WorkingArea;
System.Windows.Forms.Tests (3)
System\Windows\Forms\ScreenTests.cs (3)
117
Screen screen = Screen.
FromPoint
(point);
151
Screen screen = Screen.
FromPoint
(point);
181
Screen screen = Screen.
FromPoint
(point);