Managed usercontrol on a CProperpyPage

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
 
M

Marcus Heege

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

Marcus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top