Detect when your Application is Activated or Deactivated

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Advanced
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6

More information:
To determine when your application is activated or deactivated, you have to trap the WM_ACTIVATEAPP message via message hooking. This .zip file includes the code to do this, and a demo app that uses the code.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download appactivate.zip