How to: Display an Instance of a Returned Object
When you call a method that returns an object, you can display an instance of the returned object in the Object Test Bench tool window.
To display an instance of a returned object
Follow the procedures for creating an instance in the Object Test Bench tool window. See How to: Create and Display an Instance of an Object.
You can also call static methods on classes from Class View or Class Designer and display the returned object in the Object Test Bench.
Follow the procedures to call a method that returns an object. See How to: Call a Method from Object Test Bench.
In the Method Call Result Message Box, check the Add to Object Test Bench check box and provide a valid name for the object.
Check the Object Test Bench tool window for the object shape.