Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / February 2005

Tip: Looking for answers? Try searching our database.

Any way to detect when entire application loses focus?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Reef - 28 Feb 2005 16:35 GMT
Hi everyone,

Is there any way through a p/invoke or otherwise to detect when an
application entirely loses focus and something else pops up like let's say
you are using IE and then click start --> Contacts, the IE window is pushed
to the back.

If I were the IE program would I be able to tell when I've been pushed back
like that?

Thanks!
Peter Foot [MVP] - 28 Feb 2005 16:58 GMT
Use the Deactivate event on your form

Peter

Signature

Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

> Hi everyone,
>
[quoted text clipped - 9 lines]
>
> Thanks!
Reef - 28 Feb 2005 20:03 GMT
Hi Peter,

I should clarify a bit. Is there a way to know when my application loses
focus to another application. Wouldn't the deactivated event fire even when I
was switching between forms in my app?

So my question is how do I know when my app loses focus entirely instead of
just a single form? Is this possible?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.