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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:27:09+00:00 2026-06-17T08:27:09+00:00

No matter what the scenario may be I’m able to recreate this annoying problem

  • 0

No matter what the scenario may be I’m able to recreate this annoying problem 100% of the time.
Create a .Net project, C# or VB.Net. Add a ToolStrip control to the form. Create a few simple DropDownButton(s) that contain at least 2 menu items. Add any other controls you wish, a list box (populate it so it can receive focus correctly) and a ComboBox control. Either assign shortcut keys or enable TabStop on the ToolStrip so that it can receive focus by Keyboard.

Run the project (Debug/Release, which ever you fancy). Use your Keyboard to give the ToolStrip Focus (by tab or shortcut key). Arrow down into a sub item. Now select the escape key to collapse the Toolstrip sub menu. Tab to the ListBox or ComboBox that contains a few Items.
All looks great right? Now use your arrow keys to navigate in these controls… Surprise! your back on the ToolStrip and the control you thought had focus doesn’t!

I’ve tried multiple things to force focus on the ListBox. One example is I’d add the event handler for OnEnter (ListBox.Enter+=…) and add some code like:

ListBox.Focus();
ListBox.Select(); 

Nothing was a success… It seems like once the menu expands on a toolstrip you will be forever stuck on this control using your Keyboard…
This is important for me to resolve due to the fact that i work with blind users whom use keyboard navigation only… Is this a bug? I cannot reproduce this in MFC…

Any suggestions?

Update
I was able to find a control that doesn’t reproduce this strangeness…

System.Windows.Forms.MainMenu is the only “Tool Bar object” that doesn’t behave like the others…

I’d still like some feedback on the above though (Help for others and myself)…

Update 2
The underlying issue is within [ToolStripObject].TabFocus property… if set to false all seems to work ok… giving focus back to the control that “looks” like it’s focused. But having that capability to allow a blind user to navigate throughout all UI controls via tab is a handy thing to implement… it’s too bad this property doesn’t work like it should….

  • 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-06-17T08:27:10+00:00Added an answer on June 17, 2026 at 8:27 am

    I got it to work by overriding the ToolStripMenuItem:

    public class ToolStripMenuItemEx : ToolStripMenuItem {
    
      protected override bool ProcessCmdKey(ref Message m, Keys keyData) {
        if (keyData == Keys.Escape) {
          ToolStripDropDownButton tb = this.OwnerItem as ToolStripDropDownButton;
          if (tb != null) {
            tb.HideDropDown();
            return false;
          }
        }
        return base.ProcessCmdKey(ref m, keyData);
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I may be greatly misunderstanding this threading scenario, but that's why I'm asking. What
This is the scenario: I'm working on a new ASP.NET application that uses master
Here is another question I have about being able to calculate this scenario in
No matter what you read about ASP.NET routing or REST I think the best
I have a scenario where during the system install time, a few services were
I've got a scenario that you can envision this way: Start off with an
This is my first attempt to use WCF so there may be something fundamentally
I have now been stuck on this problem for more then 2 weeks! In
I currently have a scenario where a 1000 actions could occur in a matter
The scenario is the following: Lets say I have this application App that depends

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.