Retrieve the Captions of All Open Top-Level Windows

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6

More information:
This example uses the AddressOf Operator to return a string array containing the window titles of all open top level windows.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: