Trying to name submenus ("Edit Names") doesn't work!

  • Thread starter Thread starter Larry Woods
  • Start date Start date
L

Larry Woods

I am trying to name my submenus (MainMenu control) and they show up in the
menu dropdown...like they are O.K., but when I check my controls the names
are still "MenuItemX". OTOH, the top-level menu items renamed just fine.

What might I be doing wrong?

TIA,

Larry Woods
 
Hi Larry,

Can you do it in design time? You may check the following link.
Adding Menus and Menu Items to Windows Forms
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskaddingmenusitemstomenu.asp
MainMenu Component
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vborimainmenucontrolprogramming.asp

I add the MainMenu Control and Input in the "Type Here".
And right click on the Menutiem and select properties, in the properties
page, I can rename the name in the name property.
Did I misunderstand you meaning?


Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
 
Peter Huang said:
Hi Larry,

Can you do it in design time? You may check the following link.
Adding Menus and Menu Items to Windows Forms
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskaddingmenusitemstomenu.asp
MainMenu Component
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vborimainmenucontrolprogramming.asp

I add the MainMenu Control and Input in the "Type Here".
And right click on the Menutiem and select properties, in the properties
page, I can rename the name in the name property.
Did I misunderstand you meaning?

If you right click on the menuitem you can select [Edit Names].
Typing directly on the menuitem now changes the Name instead of the text.
Unfortunately, this is very hit and miss. Sometimes the Names will stick and
other times they will revert to the original "MenuItemX".
The simple solution is to use the Property Browser to edit the Names.
 
Hi, Peter,

The problem IS during design. I have tried somewhat successfully to
duplicate the problem and sometimes the new name "takes" and sometimes it
doesn't. I must admit that I can't find the pattern. I guess that I will
just have to "live with it." BTW, I am using VS 2003.

I'll let you know if I find the pattern.

Thanks.

Larry
 
Back
Top