14 references to FromChildHandle
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1861Control? target = FromChildHandle(lpmsg->hwnd);
System\Windows\Forms\Application.ThreadContext.cs (1)
951Control? target = Control.FromChildHandle(msg.hwnd);
System\Windows\Forms\Control.cs (1)
8623target ??= FromChildHandle(message.HWnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
764Control? activeControl = Control.FromChildHandle(m.HWnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
579Control? control = Control.FromChildHandle(m.HWnd);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (1)
61_designer.SetUnhandledException(Control.FromChildHandle(m.HWnd), ex);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlTests.Methods.cs (7)
1994Assert.Same(control, Control.FromChildHandle(handle)); 1998Assert.Null(Control.FromChildHandle(handle)); 2008Assert.Null(Control.FromChildHandle(handle)); 2012Assert.Null(Control.FromChildHandle(handle)); 2029Assert.Same(parent, Control.FromChildHandle(window.Handle)); 2033Assert.Null(Control.FromChildHandle(window.Handle)); 2039Assert.Null(Control.FromChildHandle(IntPtr.Zero));
WindowsFormsIntegration (1)
System\Windows\Integration\ApplicationInterop.cs (1)
106SWF.Control control = SWF.Control.FromChildHandle(m.HWnd);