5.2. Reading the Object Model
The object model of an OLE Automation server is a hierarchy of classes, each containing methods, properties, and events. These methods, properties, and events determine how you can control the application. First of all, though, you need to know what methods, properties, and events are available to you. The first port of call should be the documentation (if any) available from the producer of the OLE Automation server. In addition, once you've created a project-level reference to the application, you can find out a lot about the application's object model from within the VB development environment.
5.2.1. Using the Object Browser
You can use the Object Browser to explore the contents of each class and to find out, for example, what data types are returned by various methods and properties, or what parameters a particular method is expecting. To open the Object Browser, which is shown in Figure 5.2, do any of the following:
Click the Object Browser button on the toolbar.
Select the Object Browser option from the View menu.
Press F2.
Figure 5.2. The Visual Basic Object Browser

The Object Browser is divided into three panes. The left pane displays the classes contained within the selected library; the right pane displays the properties, methods, events, and constants of the selected class; and the bottom pane displays details about the selected ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access