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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:57:30+00:00 2026-05-23T04:57:30+00:00

I am setting up a simple ‘boot menu’ for my app, where the (experienced)

  • 0

I am setting up a simple ‘boot menu’ for my app, where the (experienced) user can check or uncheck various run options. The boot menu is a simple borderless form shown modally and with

  • Quit button
  • Continue button, as well as
  • boot options checkboxes

I display this boot option dialog as I am starting my app if the user is holding the F8 key – I’ve discovered that Windows does not use F8, so you can actually hold down F8 while clicking on a shortcut to my exe and my boot dialog opens. Herein lies the probem.

My form does not become the active application – rather the Explorer window hosting the shortcut that I clicked on does. If I click on my form (boot dialog) it gets the focus. How can I make my boot dialog form ‘pull’ Windows into focusing it?

  • 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-23T04:57:31+00:00Added an answer on May 23, 2026 at 4:57 am

    In general you cannot take focus. From Raymond Chen’s Old New Thing blog:

    • Foreground activation permission is like love: You can’t steal it, it has to be given to you

    …the window manager sees no reason for the first instance to have any right to take the foreground. There is no evidence that the first instance is coming to the foreground in response to some user action.

    There are a variety of ways of addressing this problem. The easiest way is simply to…

    • You don’t need to steal focus if you can just arrange for someone to give it to you

    …outright stealing the focus is the wrong thing to do…

    …Just because there’s no good way to do something doesn’t mean that you are automatically permitted to do it in a bad way.

    The problem is that the user has been giving input to a program that is not yours. You’re not entitled to have focus just cause you want it.

    It may not be the answer you want, but it is the answer. And Microsoft has been working hard to thwart programs that try to steal focus. Any solution you come up with is breaking the rules, and might not work at any point in the future.


    …Just because there’s no good way to do something doesn’t mean that you are automatically permitted to do it in a bad way.

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

Sidebar

Related Questions

I'm setting up a simple page that just displays the contents of an XML
I must be overlooking something simple. I'm setting a variable from a query result
I'm writing a simple app that's going to have a tiny form sitting in
I am trying to create a simple setting in Orchard that appears in the
might be a stupid simple solution but I can't seem to find what's wrong
i am setting up a simple UISlider to animate it's progress: [UIView animateWithDuration:songLength delay:0.0
I am setting up a simple has_many through relationship. I was wondering if there
Simply setting the SVN_EDITOR variable to mate does not get the job done. It
How do you parse a CSV file using gawk? Simply setting FS=, is not
Documentation simply states that setting setAutosavingDelay to anything > 0 on the shared doc

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.