Solved

How can I get WM_ACTIVATEAPP message for an form based application

Posted on 1997-06-16
1
539 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

685 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