15 references to FromHandle
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
267
System.Windows.Forms.Control.
FromHandle
(hWndParent) as RMPublishingDialog;
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (2)
9277
if (
FromHandle
(hWnd) is not { } control)
11103
Control? control =
FromHandle
(m.LParamInternal);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
897
Control? intendedControl = Control.
FromHandle
(m.HWnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
272
if (Control.
FromHandle
(m.HWnd) is ToolStrip toolStrip && !toolStrip.IsDropDown)
System\Windows\Forms\Form.cs (2)
290
public static Form? ActiveForm =>
FromHandle
(PInvokeCore.GetForegroundWindow()) as Form;
319
mdiChild =
FromHandle
(hwnd) as Form;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2336
Control? control = window as Control ?? Control.
FromHandle
(window.Handle);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlTests.Methods.cs (7)
2040
Assert.Same(control, Control.
FromHandle
(handle));
2044
Assert.Null(Control.
FromHandle
(handle));
2054
Assert.Null(Control.
FromHandle
(handle));
2058
Assert.Null(Control.
FromHandle
(handle));
2075
Assert.Null(Control.
FromHandle
(window.Handle));
2079
Assert.Null(Control.
FromHandle
(window.Handle));
2085
Assert.Null(Control.
FromHandle
(IntPtr.Zero));