Activate

The Activate event occurs when an Explorer window becomes the active window. Be careful not to overload this event procedure with code because the Activate and Deactivate events fire many times during an Outlook session. Each time a user opens an Inspector for an item, the following event sequence occurs:

1. Explorer Deactivate

2. Inspector Activate

3. Inspector Deactivate

4. Explorer Activate

The following code example shows you how to use the Activate event to make a command bar named Contacts visible or invisible, depending on the current folder in the Explorer:

Was this article helpful?

0 0

Post a comment