using System.Runtime.InteropServices;
[DllImport("user32.dll")]
private static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
Then when you want attach control on window call
SetParent(control.Handle, parentHWND); control.BringToFront();

0 comment(s):
Post a Comment