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

  • SEARCH
  • Home
  • 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 637977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:40:56+00:00 2026-05-13T20:40:56+00:00

I have an application window which covers the screen and there are several minor

  • 0

I have an application window which covers the screen and there are several minor tool windows which are hidden by default and their ‘Owner’ properties are set to this main window.

When I show a tool window and click one of its buttons it hides itself to show another window. When I hide that another tool window Windows switches app just like when you press alt+tab. The only way to prevent this is clicking on the main application window before closing (hiding) the tool window.

Why does the application switching happens and how to prevent this? Well I can tell explicitly those windows to bring the main window front on hide (I haven’t tried that yet, but I don’t like to do that.) This only happens when the Owner property is set on the that windows to prevent them from showing behind the main window.

ps: This full screen app is a game and those windows are the menus and the setting screens etc…

  • 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-13T20:40:57+00:00Added an answer on May 13, 2026 at 8:40 pm

    Murky problem, I can’t repro and haven’t heard of this before. This behavior is normal when the Windows window manager is forced to hunt for another window to give the focus to when the current one closes. And the app doesn’t have any window left that is enabled. That should not be the case in your app, unless you intentionally set your main window’s Enable property to False if the tool window gets the focus. Running windows on different threads is a long-shot explanation.

    Things to try are to set the tool window’s ShowInTaskbar property to false so the user must always go through the main window to refocus the app. And to make sure the window only closes due to a MouseUp event so mouse capture can’t mess things up. And, yes, to explicitly focus the main window in the FormClosing event.

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

Sidebar

Related Questions

I have a WPF application with Main Window which is not a tool window
I have a window application which uses SP classes to create a site. I
In my application I have a window which I popup with small messages on
I'm developing a window application in C# VS2005. I have a dataGridView in which
I have a question on javascript window management. My application opens an iframe which
In my application, I have a 'logging' window, which shows all the logging, warnings,
I have a Windows application which has a browser in it. The Windows application
I have two windows application, one is a windows service which create EventWaitHandle and
I have a C# windows application which does the following: 1) the main form
I currently have a 32-bit .Net application (on x86 Windows) which require lots of

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.