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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:55:35+00:00 2026-05-26T22:55:35+00:00

I have a WinForms application with many menus, each menu has an average of

  • 0

I have a WinForms application with many menus, each menu has an average of 30 menu items. In any given menu there can be multiple words that start with the same letter.

Currently I use a simple method of creating an alt key mapping to each item by prepending an ampersand to the begging of each menu item.

I need to be able to detect a duplicate key mapping (starting letter) and reassign it to another character; on that hasn’t been taken yet. The winning character would be the one closest to the begging of the word as possible.

MENU Example

  • List item
  • New Window
  • Save Document
  • Print
  • Print Preview

A more ideal algorithm would be smart enough to look at the next word in the string, and have addition rules. If I could create a set of rules that emulates a menu such as this:

FireFoxMenu

I understand that fire fox most likely assigns their mappings manually – but I am trying to be constructively lazy.

  • 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-26T22:55:35+00:00Added an answer on May 26, 2026 at 10:55 pm

    Since you have an average of 30 items, there’s always going to be accelerator letters that are used more than once. And you certainly don’t want an item’s letter changing over multiple runs (or worse, multiple menu uses within the same run) of your program.

    Why not just keep it simple and require each menu item to have a static ‘accelerator letter’ property?

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

Sidebar

Related Questions

In my Winforms application I have a toolbar that contains many items (buttons with
I have created a dialog box in my WinForms application. This has many text
In a C# Winforms (3.5) application I have added a class that contains many
I have a WinForms application (I'm using VB) that can be minimized to the
I have a WinForms application. That application have a rich functionality. It can create
I have multiple business objects in my application (C#, Winforms, WinXP). When the user
I have a C# winform application. it has many forms with different functionalities. These
I have a winforms application i have been working on that runs multiple tests
I have a drawing application developed in winforms C# which uses many System.Drawing.Bitmap object
Like there are many Applications which are just basic but you can have install

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.