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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:30:58+00:00 2026-06-18T03:30:58+00:00

I was watching a tutorial video on the MenuStrip control for WindowsForms and the

  • 0

I was watching a tutorial video on the MenuStrip control for WindowsForms and the video provided by MSDN site indicates you could reference a specific menu item using a “key” rather than an index number – but they never explained how and a quick search yielded me with no results.

How can you reference a menu item by its name rather than an index number (which can change if you add new menu items) ?

  • 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-18T03:30:59+00:00Added an answer on June 18, 2026 at 3:30 am

    It is the same way as the index. Just provide a string representing the name of the menu item instead of the known index of the item. This is known as the key value.

    index Example:

        var fileMenuItem = menuStrip1.Items[0];
    

    string Example:

        var fileMenuItem = menuStrip1.Items["File"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'am watching some video tutorial about css and find realy strange thing. First of
I'm new to rails, and I'm watching this video tutorial online and I was
The other day I was watching a tutorial video on Youtube about db, and
I was watching a Silverlight tutorial video, and I came across an unfamiliar expression
I'm building my first GAE app. After watching a tutorial video on youtube, (
I've been watching this tutorial http://windowsclient.net/learn/video.aspx?v=296114 . At the very begining empty Windows forms
A question cropped up while watching a tutorial video. Are there any rules regarding
I am going to design a site using asp.net, and after watching a tutorial
I was watching this video tutorial and I noticed he said that he's added
I was watching a tutorial on Rails and was very impressed that you could

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.