These two samples illustrate adding document-management features to a WinForms application. The "raw" sample shows adding these features directly to SDI and MDI forms. The "FileDocument" sample shows collecting these features into a component and then using that component to add these features to SDI and MDI forms.