15 references to FromHandle
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
267System.Windows.Forms.Control.FromHandle(hWndParent) as RMPublishingDialog;
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (2)
9318if (FromHandle(hWnd) is not { } control) 11136Control? control = FromHandle(m.LParamInternal);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
897Control? intendedControl = Control.FromHandle(m.HWnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
270if (Control.FromHandle(m.HWnd) is ToolStrip toolStrip && !toolStrip.IsDropDown)
System\Windows\Forms\Form.cs (2)
290public static Form? ActiveForm => FromHandle(PInvokeCore.GetForegroundWindow()) as Form; 319mdiChild = FromHandle(hwnd) as Form;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2340Control? control = window as Control ?? Control.FromHandle(window.Handle);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlTests.Methods.cs (7)
2049Assert.Same(control, Control.FromHandle(handle)); 2053Assert.Null(Control.FromHandle(handle)); 2063Assert.Null(Control.FromHandle(handle)); 2067Assert.Null(Control.FromHandle(handle)); 2084Assert.Null(Control.FromHandle(window.Handle)); 2088Assert.Null(Control.FromHandle(window.Handle)); 2094Assert.Null(Control.FromHandle(IntPtr.Zero));