Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How can I get WM_ACTIVATEAPP message for an form based application

Posted on 1997-06-16
1
526 Views
Last Modified: 2011-10-03
I must do something when the application is activated,
but how can I get the message?
Or to say, how can I know when the application is activated,  either by keyboard(Alt+Tab) or by mouse click
0
Comment
Question by:lorry
1 Comment
 
LVL 2

Accepted Solution

by:
vorlon earned 50 total points
ID: 1427360
Lorry,
The Form's activate event is the equivalent of the WM_ACTIVATEAPP from the Windows API. Any processing you want to do when form is activated, place it there. For example the following procedure beeps when it is activated:

Sub Form_Activate()
   Beep
End Sub
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question