to add the hwnd to the design and runtime instance of your control make a property hwnd and map is to UserControl.hwnd and for the runtime you'll have to use UserControl.Extender.hwnd