The DifferentDesigner sample implements its run-time features in a different object (the DifferentInstance object) from its design-time features.
Click to open or copy the DifferentDesigner 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 DifferentDesigner designer has one property, MyString, which can be set at design time or run time. This designer uses IProvideDynamicClassInfo to provide information about its different run-time object.
To build the DifferentDsgn sample
Using the Designer at Design Time:
Make sure the run-time instance of the designer (DifferentInstance) is registered before loading the DifferentDesigner project. The supplied build procedures register the designers for you.
Create a Standard EXE project, then open the Project menu. Click Components, open the Designers tab, and select Ax98 SDK Different Designer Sample to add the designer to the project. Then select Add Ax98 SDK Different Designer Sample on the Project menu to create an instance of the designer.
You can view or edit the MyString property in the designer's property window. You must add code to display the About Box at run time. See the VB_SimpleDsgnSamp project for an example.
Using the Designer at Run Time:
See the DifferentInstance sample for a description of run-time behavior.
Sample Client Project
The VB_SimpleDsgnSamp project in the VBSamples directory is a Visual Basic test program for the DifferentDesigner 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
DifferentInstance Sample