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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:42:17+00:00 2026-05-27T15:42:17+00:00

I need to create a form where AlwaysOnTop = True when the browser is

  • 0

I need to create a form where AlwaysOnTop = True when the browser is visible. This creates some sort over “overlay”. The logic works like this:

  • The program checks which window is active.
  • If the active windows is a certain process, my form will initialize the TopMost utility, and be the active window itself.
  • When the certain process is not the active window anymore, my form will disappear.

How I did it:

  • My program checks if a browser is the active window, if so: the form gets topmost and the program stops checking what the active window is. (because my topmost form is the active window now).
  • Now the program needs to check what the window under my form is, the second active window.
  • If it’s not the browser anymore, the form needs to hide, and the program will check what the active window is again.

I already completed the function that checks what the first active window is,

I’m stuck on getting the function that checks what the second active window is.

  • 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-27T15:42:18+00:00Added an answer on May 27, 2026 at 3:42 pm

    I’m not sure that there’s such as thing as a “Second active window” – its either active or its not.

    Why don’t your leave you active window checker running after the first step of detecting the browser.

    You can detect when the active window is no longer your form and hide your overlay then.

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

Sidebar

Related Questions

To recreate this behaviour, you need to create a pop-up form with the following
I need to create some simple form that will be use to registration a
I need to create a form with, half linear view (textboxes and dropdownlists in
I need to create a form that has many of the same fields, that
I need to create a full-text search form for a database of emails /
I need to create a Gold bar for my windows form similar to what
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>
I'm using permissions in my application. And in some case I need to create
I need to create a form with the same group of fields (data is
I need to create a form element <input disabled type=text value=Shui Mu Tsinghua />

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.