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 6030651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:04:07+00:00 2026-05-23T05:04:07+00:00

Sometimes my message box is shown under the main window of the application. Thus,

  • 0

Sometimes my message box is shown under the main window of the application. Thus, message box is invisible and the main window looks like it’s hanged and doesn’t responds to any input. It’s possible to “unfreeze” the main window by using alt-tab to switch to another app and back, and it finally shows message box in it’s right place – above the main window. But this is not obvious for the user.

Any ideas, how to avoid this problem?

UPD the main window is native; I’ve tried using MessageBox with and without specifying parent window, but had the same problem in both cases

  • 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-23T05:04:08+00:00Added an answer on May 23, 2026 at 5:04 am

    I’m not sure what was the reason, but using my own wrapper for the native parent window fixed this problem:

    public class Win32Window : IWin32Window
    {
        public Win32Window(IntPtr val)
        {
            _handle = val;
        }
    
        readonly IntPtr _handle;
    
        public IntPtr Handle
        {
            get { return _handle; }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes in an application, one might compare the Message text of an exception. For
I have a windows service application, running under WinXPe, which sometimes fails with an
I sometimes see messages like Process 12990 waits for ExclusiveLock on tuple (889,66) of
When creating iPhone apps in simulator, I sometimes see messages like Springboard failed to
When sending two UDP messages to a computer on Windows 7, it looks like
I use the __FILE__ macro for error messages. However, sometimes the path comes back
sometimes i use debug code to alert something in javascript (for example, matching something
Sometimes, when I present a part of the software development process to certain people,
sometimes when i want a winforms control to be docked also to the right
sometimes i see an image not being served when the browser look at www.somesite.com/some_image.jpg

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.