I'm trying to import in my MFC project some custom form user controls made with c#. Now if I try to import them in a dialog following the msdn tutorial I have no problem. Instead If i try to import them in a cpanedialog I'm not able to initialize the control (if I look at the control value in debug mode it is always NULL). Now my question is:
It is possible to host the control or it is the same situation of the dialogbar in which as MSDN said can not be host form control?
PS To host the control I have included the clr support than I have made these three passage:
1) in header file I have add CWinFormsControl<mbrPropertyGrid::PropertyGrid> m_ctrl;
2)then to the cpp file of the panedialog I have added a DDX control where IDC_CTRL2 is a static tex used as placeholder DDX_ManagedControl(pDX, IDC_CTRL2, m_ctrl);
3) at least in a specific method I use the control