By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,081 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,081 IT Pros & Developers. It's quick & easy.

Items in toolstrip and menustrip disappear?

P: n/a
After I've added the menustrip and the toolstrip to my MDI windows Form (and
I've added their respective items), I notice that the items disappear.
They're still in the code, but the association between the bar and the items
(i.e. toolStrip.Items.AddRange) disappears. How come? This is happening
frequently. After I fix it, it erases it again.

I'm currently adding these menu controls to an mdi application built in
VS2002 and successfully converted to VS2005 (via the VS2005 Wizard).

Jul 23 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Hi Doc,

To make things clear, I'd like to ask several questions here.

1. You have mentioned the application was built in VS2002 and then
converted to VS2005. In VS2002, there's only MainMenu and ToolBar and after
convertion, they are still a MainMenu and a ToolBar and couldn't become a
MenuStrip or a ToolStrip.

Is it the MainMenu and ToolBar that has the problem you described?

2. How you add items to the MainMenu and ToolBar, at design time or run

I guess you add items at design time. It may be the Form Designer that
modify the code in the InitializeComponent method so that the association
between the bar and the items disappears. If so, I suggest that you add
items to the bar or main menu at run time, i.e. by your own code.

3. >They're still in the code, but the association between the bar and the
items (i.e. toolStrip.Items.AddRange) disappears.

What do you mean by "They're still in the code" in the above sentence?
Linda Liu
Microsoft Online Community Support

Get notification to my posts through email? Please refer to

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 24 '07 #2

P: n/a
Hi Doc,

How about the problem now?

If the problem is still not solved, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Linda Liu
Microsoft Online Community Support

Jul 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.