一旦应用程序现在用作父应用程序,您将如何从表单中解开应用程序?
[DllImport("user32.dll")]
public static extern int SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
[DllImport("coredll.dll", SetLastError = true)]
private static extern int GetWindowLong(IntPtr hWnd, int nIndex);
[DllImport("coredll.dll", SetLastError = true)]
private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
SetParent(setter, this.panel1.Handle);
解开我试过 SetParent(setter, setter); 没有运气。