• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 926
  • Last Modified:

C# -- MenuStrip (Reusing on Form2)

I created a new WindowsAPP, dropped a "MenuStrip" onto Form1, and changed it to have the buttons I needed.

How can I reuse this same "MenuStrip" on Form2, Form4, etc ?
  • 2
1 Solution
Using the form designer click the menu strip copy it (ctrl-c). Then paste (ctrl-v) onto the other forms. Note that this only captures the UI though, the code is not transferred to the new form.
finance_teacherAuthor Commented:
Doing a "copy/paste" requires me to "re-copy/paste" onto 50+ forms every time I make a change to the menuStrip.

Do you have a better way ?

If the behavior is always the same, then putting it into a User Control should work well. You just update the one control, and the changes are replicated when you rebuild the application. This control can be selected from your toolbox and added to all of your forms.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now