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