Solved

How can I get WM_ACTIVATEAPP message for an form based application

Posted on 1997-06-16
1
509 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now