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)
9318
if (
FromHandle
(hWnd) is not { } control)
11136
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)
270
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)
2340
Control? control = window as Control ?? Control.
FromHandle
(window.Handle);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlTests.Methods.cs (7)
2049
Assert.Same(control, Control.
FromHandle
(handle));
2053
Assert.Null(Control.
FromHandle
(handle));
2063
Assert.Null(Control.
FromHandle
(handle));
2067
Assert.Null(Control.
FromHandle
(handle));
2084
Assert.Null(Control.
FromHandle
(window.Handle));
2088
Assert.Null(Control.
FromHandle
(window.Handle));
2094
Assert.Null(Control.
FromHandle
(IntPtr.Zero));