Visual Basic Reference

OleCont (OleCont.vbp)

See Also

This sample application demonstrates the capabilities of the OLE Container control. The sample allows you to save or open OLE objects using the SaveToFile and ReadFromFile methods. For more information, see Chapter 8, "Using the OLE Container Control," in the Programmer's Guide.

File Description
Contchld.frm. An MDI child form containing the OLE Container control
Contmdi.frm The main form.
Olecont.bas Module containing Public Sub and Function procedures.
Olecont.vbp The project file for this sample.

To Run

From the Visual Basic File menu, choose Open Project and select the Olecont.vbp file, which is listed in the Samples directory. Press F5 or choose Start from the Run menu to run the application.