Solved

C# -- MenuStrip (Reusing on Form2)

Posted on 2009-07-15
3
908 Views
Last Modified: 2013-12-17
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 ?
0
Comment
Question by:finance_teacher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Expert Comment

by:mattyg_mb
ID: 24862169
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.
0
 

Author Comment

by:finance_teacher
ID: 24863577
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 ?

0
 
LVL 1

Accepted Solution

by:
mattyg_mb earned 500 total points
ID: 24863859
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
T-SQL and CLR parameter strings 9 59
C# MDI - Use Button on Child Form to Open (or Show) a Different Child Form 3 39
CSS question 16 59
How do I "share" on social sites? 2 32
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question