0 out of 1 rated this helpful - Rate this topic

Hosting a Windows Forms User Control in an MFC Dialog Box

MFC hosts a Windows Forms control as a special kind of ActiveX control and communicates with the control using ActiveX interfaces (for example, IOleObject) and properties and methods of the Control class. In general, you should use .NET Framework properties and methods to operate on the control.

For a sample application that shows Windows Forms used with MFC, see MFC and WinForms Integration.

NoteNote:

In the current release, a CDialogBar object cannot host Windows Forms controls.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.