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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:20:29+00:00 2026-06-11T21:20:29+00:00

Say, for example, I have a ToolStripMenu. I have a tab already made (let’s

  • 0

Say, for example, I have a ToolStripMenu. I have a tab already made (let’s call it Download), and want a substrip of it (the “type here” part) to be automaticaly made. I want it to be text that the string downloadedString is. Then, later, when it’s clicked, I want it to fire:

Process.Start("google.com/" + Text of the substrip clicked);

How do I do this?

  • 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-11T21:20:30+00:00Added an answer on June 11, 2026 at 9:20 pm

    You can do so via the Click event handler on the ToolStripMenuItem.

    Part 1 – programmatically adding menu items

    Just add a new ToolStripMenuItem to the MenuStrip like so:

    ToolStripMenuItem mi = new ToolStripMenuItem("whatever");
    mi.Click += new EventHandler(menuItemHandler_Click);
    
    menuStrip1.Items.Add(mi);
    

    They can all reference the same event handler (see below).

    Part 2 – event handler to start your process

    The event handler will start the process, using the text of the menu item that was clicked:

    private void menuItemHandler_Click(object sender, EventArgs e)
    {
        Process.Start("google.com/" + (sender as ToolStripMenuItem).Text);
    }
    

    Based on the code above, Process.Start() will receive google.com/whatever as the parameter.

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

Sidebar

Related Questions

Let's say for example I have this code: <input type=file id=file name=> <input class=uploadarea>
For example: I have an implementation (say doSomething()) in Base class. I want all
The issue Let's say that I have example.com, example.org and example.net. All of these
Say for example I have a body with the class test and I want
Say for example I have a Blog app that I want to be able
Let's say for example I have 3 servers, those 3 servers has apache installed.
Let's say for example i have 2 collections Comments and Users.The comments include username
Let's say for example i have a textarea and a toggle button: <div class=input>
Let's say for example I have a class A that creates an instance of
Let's say for example you have 5 different companies using the same platform (Windows

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.