Managed usercontrol on a CProperpyPage

  • Thread starter Thread starter Soren S. Jorgensen
  • Start date Start date
S

Soren S. Jorgensen

Hi,

What would it take to put a .NET usercontrol
(System.Windows.Forms.UserControl) on a CPropertyPage ??

I can expose the .NET usercontrol to MFC as a ActiveX component
(implementing nessecary interfaces and registering the .NET control in the
registry) and build a wrapper for this ActiveX in my MFC app. Then it should
be fairly easy to put the control on the page, right??

Is there some special initialization I must in my MFC app before using the
wrapped .NET ActiveX ??
I think not as it goes through COM, right ??

Kr. Soren
 
If you are using VC 2005, you can use CWinFormsControl<T> from afxwinforms.h
to achieve that.

Marcus
 
Back
Top