473,511 Members | 16,756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Items in toolstrip and menustrip disappear?

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
Jul 23 '07 #1
2 5008
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Jul 24 '07 #2
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

Jul 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
901
by: Rupesh Kokal | last post by:
Hi, Visual Studio 2003 does not have toolstrip control, which is present in Visual Studio 2005. However, can we use the toolstip, menustrip controls in Visual Studio 2003. Any help is...
1
1893
by: jincheng | last post by:
I add a toolstrip control on a windows form, set it's modifiers as protected. Then I add another form which inherited from the first one. But the property of the toolstrip on the second form is...
0
2240
by: Jon Davis | last post by:
I'm taking the items from a menustrip of a control and moving them to the parent form's menustrip: private void TakeMenus(AdminControl ac) { foreach (Control c in ac.Controls) { if (c is...
8
2090
by: gs | last post by:
I was able to set tooltips on objects other than main menu. I would like to get the effect of tooltip or microhelp in the bottom status bar when the mouse is hovering over a submenu item. How do...
1
2046
by: chandu | last post by:
Hello , I am developing an application which it contains one MenuStrip and ToolStrip. now i have to replace these controls with some other controls. is dotnet providing any alternate controls...
1
1708
by: Adam Right | last post by:
is it possible to get the all MenuStrip, ToolStrip and all sub menu items, without using reflection?
13
2834
by: PetterL | last post by:
I writing a program where I read menu items from a file. But I have problem when I click an menu item i want it to mark that one as checked but I cant access the menu object of that item to see...
0
2094
by: DarkMoebius | last post by:
Hello everybody. I want to do a MdiChilds bar. Like the Windows Task Bar. It is possible in a MenuStrip item with the property: Me.MenuStrip.MdiWindowListItem = MenuItem I want same...
0
1844
by: CAM | last post by:
Hello, Can anyone tell me if its possible to create one menustrip, toolstrip, and one statusstrip and attached to three to four forms? I just don't want to recreate the strips for every form. ...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.