This documentation is archived and is not being maintained.

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

  1. 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.

    NoteNote:

    You can also call static methods on classes from Class View or Class Designer and display the returned object in the Object Test Bench.

  2. Follow the procedures to call a method that returns an object. See How to: Call a Method from Object Test Bench.

  3. In the Method Call Result Message Box, check the Add to Object Test Bench check box and provide a valid name for the object.

  4. Check the Object Test Bench tool window for the object shape.

Show: