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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:41:41+00:00 2026-05-22T19:41:41+00:00

In a typical windows app, when a modal dialog appears and we click outside

  • 0

In a typical windows app, when a modal dialog appears and we click outside its boundaries it flickers thus indiacting that anything outside these boundaries is forbidden for now.

Is there any event that fires when this happens? I really need this effect so that I can mock this behavior for my WPF pseudo-modal window.

Thx.
Harish

  • 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-22T19:41:42+00:00Added an answer on May 22, 2026 at 7:41 pm

    See this SO question and the answer: Prevent WebBrowser control from stealing focus?

    It explains what FlashWindow does in the background. I quote what’s interesting for you:

    Microsoft doesn’t explain in so many
    words what FlashWindow does.
    Unfortunately, it doesn’t send a
    specific message (say WM_FLASH or
    similar), which would’ve made it
    easier to capture and annul this
    behavior. Instead, FlashWindow does
    three things:

    It sets a system timer for the
    flashing intervals It sends a
    WM_NCACTIVATE message for the first
    flash It sends a WM_NCACTIVATE message
    when the timer expires (on receiving
    WM_SYSTIMER)

    So you’ll have to find the window you’re interested in, and try to catch WM_SYSTIMER in the hosting window procedure. It’s a (very old) undocumented Windows message. Value is 0x118. You can also trap WM_NCACTIVATE which may be easier because it’s represented by .NET events (Activated, Deactivate, etc…)

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

Sidebar

Related Questions

I notice that Windows XP Event Viewer show a list of typical actions under
I'm trying to make a Windows app that checks some things in the background,
I am trying to create the typical header footer for a web app that
I'm diong a typical Windows Integrated Connection from a .Net Winforms Application: Dim sqlConnetion
Typical jQuery over-use: $('button').click(function() { alert('Button clicked: ' + $(this).attr('id')); }); Which can be
I'm helping a typical small company that started with a couple of outsourced systems
I am using the python app engine and finding that the log console on
"Consider a typical Windows x86 or AMD64 architecture, the memory is divided in executable
Pylint is doing something odd on my Windows box - something that shouldn't be
I have a .NET 4 app running on Windows Server 2008 R2 which I

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.