Q

SetForgroundWindow API function

SetForgroundWindow API function does not work with Microsoft Windows 2000. Is there any other suitable API that does the same task?
Actually, SetForgroundWindow works exactly as it is supposed to. What is different is that Microsoft fixed the incredibly annoying problem that used to plague NT4 and Win9x: applications stealing focus from the user is using. There are ways to fiddle around it, but Microsoft's taken an even tougher stance with Windows XP and the techniques that work on Windows 2000 will not work on Windows XP. You can still call SetForgroundWindow, but the window will flash three times in the taskbar to indicate your application needs attention.
This was first published in July 2001
This Content Component encountered an error

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close