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)
9277if (FromHandle(hWnd) is not { } control) 11103Control? 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)
272if (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)
2336Control? control = window as Control ?? Control.FromHandle(window.Handle);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlTests.Methods.cs (7)
2040Assert.Same(control, Control.FromHandle(handle)); 2044Assert.Null(Control.FromHandle(handle)); 2054Assert.Null(Control.FromHandle(handle)); 2058Assert.Null(Control.FromHandle(handle)); 2075Assert.Null(Control.FromHandle(window.Handle)); 2079Assert.Null(Control.FromHandle(window.Handle)); 2085Assert.Null(Control.FromHandle(IntPtr.Zero));