Computing.Net > Forums > Programming > VB6: Events between 2 apps

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB6: Events between 2 apps

Reply to Message Icon

Name: rainchild19
Date: September 23, 2002 at 11:58:06 Pacific
OS: Win XP
CPU/Ram: P III 256 RAM
Comment:

Hi,

If I have 1 applications running on the machine, at the top most level, and then click on a seprate applications (say Notepad.exe) how do I capture an event in my original applications to say that it is no longer the active applications? Any suggestions would be greatly appreciated. Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: Jeff J
Date: September 24, 2002 at 09:44:01 Pacific
Reply:

When an app is at topmost level (top of zorder), it will be the app in-focus. If I remember accurately (I do not have VB6 near me at the moment), the form event is called LostFocus. Just beware that if your app launches a dialog of any kind, it will also lose focus, even though it is still the top level application (just technically no longer the particular window with focus). In that case, just check to see if any dialogs are causing the loss of focus, before assuming your app is no longer top level.

Cheers


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB6: Events between 2 apps

Duration Between 2 given time www.computing.net/answers/programming/duration-between-2-given-time/3183.html

put text between 2 lines www.computing.net/answers/programming/put-text-between-2-lines/12559.html

making a link with 2 forms in vb www.computing.net/answers/programming/making-a-link-with-2-forms-in-vb/7847.html