Solved

How can I get WM_ACTIVATEAPP message for an form based application

Posted on 1997-06-16
1
551 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
[X]
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
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month6 days, 21 hours left to enroll

622 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