MFC Versus WinForms

Some folks do need to build document-based applications, and even though WinForms isn't designed to support that as well as MFC is, it's not very hard to build complete document-based applications if you're armed with the knowledge of what WinForms does and doesn't provide as compared with MFC. Table A.1 shows a feature-based summary focused on building document-based applications.

Table A.1. MFC Versus WinForms/.NET
FeatureMFCWinForms/.NET
Application WizardsFourFour
IDE IntegrationYesYes
Dialog, SDI, MDI ApplicationsYesYes
Multi-SDI ApplicationsYesNo
UI LayoutYes (dialogs only)Yes
Docking and SplittingYes (simple)Yes
AnchoringNoYes
Toolbars and the likeYesYes (no floating)
Printing, Preview, SetupYesYes
OLE/Active DocumentsYesNo
COM ...

Get Windows Forms Programming in C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.