A set of .NET Framework managed libraries for developing graphical user interfaces.
- The difference in behavior on a local Windows 11 machine versus Windows 10 / VM / Remote Desktop is not documented in the provided material. The context only covers general windowing and layout behavior, not low-level changes to
SetParentor cross‑process reparenting semantics between OS versions or session types. No specific OS‑level explanation for this discrepancy is available in the context. - The context does not describe or endorse any reliable, supported way to embed a full external application (like Notepad++) into a Windows Forms application using
SetParenton modern Windows. The only supported “embedding” scenarios covered are:- Hosting Win32 content in WPF via
HwndHost, where the hosted HWND is created specifically for that purpose and dialog styles are adjusted (for example, changing a dialog’s style toWS_CHILD | WS_BORDER | DS_CONTROLand still callingIsDialogMessage()so Win32 can process messages correctly). - Hosting Windows Forms controls in WPF and WPF controls in Windows Forms via
WindowsFormsHostandElementHost, where layout‑related properties are automatically managed and must not be overridden directly.
SetParentis supported or reliable. - Hosting Win32 content in WPF via
- The context does describe modern Windows expectations around window behavior and layout, but it does not list any explicit Windows 11 change that blocks
SetParentfor external processes. It does, however, emphasize that:- Applications are expected to follow standard window behaviors and shell integration patterns on Windows 11, including title bar, caption buttons, and Snap Layouts.
- Modern Windows app frameworks (like WinUI) and high‑DPI support introduce additional complexity for window sizing and layout.
SetParentfrom working, nor does it describe any security or isolation change that directly targets cross‑process reparenting.
Based on the available context, only supported hybrid scenarios (Win32/WPF/WinForms interop and control hosting) are documented. Embedding a third‑party application such as Notepad++ into a Windows Forms UI via SetParent is not covered or recommended, and no OS‑level workaround or guarantee of correct docking behavior is provided.
References: