22 references to FromChildHandle
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1861Control? target = FromChildHandle(lpmsg->hwnd);
System\Windows\Forms\Application.ThreadContext.cs (1)
936Control? target = Control.FromChildHandle(msg.hwnd);
System\Windows\Forms\Control.cs (3)
5225internal static HandleRef<HWND> GetHandleRef(HWND hwnd) => new(FromChildHandle(hwnd), hwnd); 5291Control? control = FromChildHandle(hwnd); 8679target ??= FromChildHandle(message.HWnd);
System\Windows\Forms\Control.Ime.cs (1)
186ctl = FromChildHandle(PInvoke.GetFocus());
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
748Control? activeControl = Control.FromChildHandle(m.HWnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
547else if (Control.FromChildHandle(activeWindowHandle.Handle) is not ToolStripDropDown 576Control? control = Control.FromChildHandle(m.HWnd);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
629if (focusHandle.IsNull || FromChildHandle(focusHandle) != _activeControl)
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1076current = Control.FromChildHandle(found);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
259Control? focusedControl = FromChildHandle(focusedControlPtr);
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (1)
61_designer.SetUnhandledException(Control.FromChildHandle(m.HWnd), ex);
System.Windows.Forms.Tests (8)
System\Windows\Forms\ControlTests.Methods.cs (8)
1954Assert.Same(control, Control.FromChildHandle(handle)); 1958Assert.Null(Control.FromChildHandle(handle)); 1968Assert.Null(Control.FromChildHandle(handle)); 1972Assert.Null(Control.FromChildHandle(handle)); 1989Assert.Same(parent, Control.FromChildHandle(window.Handle)); 1993Assert.Null(Control.FromChildHandle(window.Handle)); 1999Assert.Null(Control.FromChildHandle(IntPtr.Zero)); 2000Assert.Null(Control.FromChildHandle(1));
WindowsFormsIntegration (1)
System\Windows\Integration\ApplicationInterop.cs (1)
105SWF.Control control = SWF.Control.FromChildHandle(m.HWnd);