Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.88 KB

hosting-a-windows-form-user-control-in-an-mfc-dialog-box.md

File metadata and controls

35 lines (25 loc) · 1.88 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Hosting a Windows Form User Control in an MFC Dialog Box
Hosting a Windows Form User Control in an MFC Dialog Box
11/04/2016
MFC [C++], Windows Forms support
hosting Windows Forms control [C++]
Windows Forms [C++], MFC support
9f66ee52-b7cb-4ffd-8306-392a5da990d8

Hosting a Windows Form 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 by using ActiveX interfaces, and properties and methods of the xref:System.Windows.Forms.Control class. We recommend that you use .NET Framework properties and methods to operate on the control.

Note

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

In This Section

How to: Create the User Control and Host in a Dialog Box

How to: Do DDX/DDV Data Binding with Windows Forms

How to: Sink Windows Forms Events from Native C++ Classes

Reference

CWinFormsControl Class
CDialog Class
CWnd Class
xref:System.Windows.Forms.Control

See also

Using a Windows Form User Control in MFC
Windows Forms/MFC Programming Differences
Hosting a Windows Forms User Control as an MFC View
Hosting a Windows Form User Control as an MFC Dialog Box