InvisibleInstance Sample

The InvisibleInstance sample implements a nonvisual run-time instance of the InvisibleDesigner object.

Click to open or copy the InvisibleInstance 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 InvisibleInstance designer has one property, MyString, which can be read or edited. This designer also implements an AboutBox method that displays a simple About box.

To build the InvisibleInstance sample

Using the Designer at Design Time:

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

Using the Designer at Run Time:

When the InvisibleDesigner enters run mode, Visual Basic creates an instance of an aggregate object containing the InvisibleInstance object. This object does not have a visible user interface; you must use Visual Basic code to get or set the MyString property or view the About box.

Sample Project

The VB_SimpleDsgnSamp project in the VBSamples directory is a Visual Basic test program for the InvisibleInstance 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

InvisibleDesigner Sample