Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5975163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:02:40+00:00 2026-05-22T21:02:40+00:00

At some users of my application, some WPF Windows will be shown behind the

  • 0

At some users of my application, some WPF Windows will be shown behind the Shellwindow. This occurs only on some places. The Shellwindow does not has set Topmost. I hope someone could give me a tip, what I can do to prevent this.

Thanks.

Best Regards, thomas

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:02:41+00:00Added an answer on May 22, 2026 at 9:02 pm

    There are only three scenarios that I know of where one of your windows could lose the focus and disappear behind the window of another app:

    • a program calling SetForegroundWindow() to shove one of its windows into the foreground. Windows has specific counter-measures against this since ~Win98, a user interface crime that was committed too often. It only permits this if it hasn’t detected any input events in the active window for a while. It will blink the taskbar button otherwise. Of course, programmers have found counter-counter-measures. A version of Windows Update started doing this roughly two years ago. Luckily the programmer that was responsible for that was taken outside and shot.

    • the self-inflicted kind, triggered by for a short time having none of your windows being capable of receiving the focus. The Windows window manager is forced to find another window to give the focus to. That may well be a ‘shell window’, whatever is handy. You get this most typically when displaying a dialog and either hiding your main window or disabling it yourself. And showing it again when the dialog is closed. That’s too late, there’s a fraction of a second where no window can get the focus. It doesn’t repeat well btw, not in the least because it depends what other window might be available.

    • displaying a toplevel non-owned window on a thread. Such a window cannot have any Z-order relationship with the other windows in your app and only has the desktop window as the parent. Where it competes with any other window, including windows owned by Explorer. Getting it shown on top of other windows is a crap-shoot, one that usually works but sometimes doesn’t. Especially painful for the user when it is a message box.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My WPF application currently only shows a screen with some controls, it doesn't connect
I'm trying to change some config file user settings values in my WPF application,
I want my web application users to download some data as an Excel file.
My application server needs to notify users about some events via email. Usually there
My application is storing some data in SQL Table called Transactions. Users are able
I've got a multi-user application having some critical data of the users. I am
I could use some help writing a regular expression. In my Django application, users
Many of our users, internal and external, start our web application. Then at some
I have a Windows Forms application that uses some Application.Idle handlers to change the
I have a WPF application using MVVM. I have some user controls that show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.