Items in toolstrip and menustrip disappear?

D

Doc John

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).

Thanks.
VS2005
 
L

Linda Liu [MSFT]

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
time?

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?


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

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
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

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

Linda Liu [MSFT]

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!

Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top