Solved

C# -- MenuStrip (Reusing on Form2)

Posted on 2009-07-15
3
909 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

705 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