DifferentInstance Sample

The DifferentInstance sample contains the source code for a simple run-time instance of the DifferentDesigner.

Click to open or copy the DifferentInstance project files.

Click to open or copy the files for the Bin directory (required).

Click to open or copy the files for the Include directory (required).

The DifferentInstance designer has one property, MyString, which can be read and edited. This designer also implements an AboutBox method that displays a simple About box.

To build the DifferentInstance sample

Using the Designer at Design Time:

See the DifferentDesigner sample for a description of design-time behavior.

Using the Designer at Run Time:

When the DifferentDesigner enters run mode, Visual Basic creates an instance of an aggregate object containing the DifferentInstance object. You must use Visual Basic code to view the DifferentInstance object, get or set the MyString property, and view the About box.

Sample Project

The VB_SimpleDsgnSamp project in the VBSamples directory is a Visual Basic test program for the DifferentInstance sample. To use this project in Visual Basic, create a standard EXE project. On the File menu, click Open Project, then navigate to the VB_Samples\VB_SimpleDsgnSamp directory. Select SimpleDsgnSamp.vbp to load the project files into the Visual Basic environment.

See Also

DifferentDesigner Sample