473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
Nov 20 '05 #1
6 1420
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/de...us/vbcon/html/
vbtskaddingmenusitemstomenu.asp
MainMenu Component
http://msdn.microsoft.com/library/de...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.
--------------------
From: "Larry Woods" <la***@lwoods.com>
Subject: Trying to name submenus ("Edit Names") doesn't work!
Date: Mon, 3 Nov 2003 15:14:29 -0700
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e4*************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
Path: cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP09.phx.gblXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153324
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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


Nov 20 '05 #2
"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:C6**************@cpmsftngxa06.phx.gbl...
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/de...us/vbcon/html/ vbtskaddingmenusitemstomenu.asp
MainMenu Component
http://msdn.microsoft.com/library/de...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.
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.
--------------------
From: "Larry Woods" <la***@lwoods.com>
Subject: Trying to name submenus ("Edit Names") doesn't work!
Date: Mon, 3 Nov 2003 15:14:29 -0700
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e4*************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
Path:

cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08 phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153324
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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

What might I be doing wrong?

TIA,

Larry Woods

Nov 20 '05 #3
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

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:C6**************@cpmsftngxa06.phx.gbl...
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/de...us/vbcon/html/ vbtskaddingmenusitemstomenu.asp
MainMenu Component
http://msdn.microsoft.com/library/de...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.
--------------------
From: "Larry Woods" <la***@lwoods.com>
Subject: Trying to name submenus ("Edit Names") doesn't work!
Date: Mon, 3 Nov 2003 15:14:29 -0700
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <e4*************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
Path:

cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08 phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153324
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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

What might I be doing wrong?

TIA,

Larry Woods

Nov 20 '05 #4
Hi Mick,

Thank you for report.
I have reported the issue, but I can not guarantee if it will be fixed.
Now, I think you can use the properties page for a workaround.

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.
--------------------
From: "Mick Doherty" <md*******@nospam.ntlworld.com>
References: <e4*************@TK2MSFTNGP09.phx.gbl> <C6**************@cpmsftngxa06.phx.gbl>Subject: Re: Trying to name submenus ("Edit Names") doesn't work!
Date: Tue, 4 Nov 2003 12:16:54 -0000
Lines: 67
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ej**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: cpc1-colc2-6-0-cust138.colc.cable.ntl.com 81.101.137.138
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153440
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:C6**************@cpmsftngxa06.phx.gbl...
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/de...-us/vbcon/html

/
vbtskaddingmenusitemstomenu.asp
MainMenu Component

http://msdn.microsoft.com/library/de...-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

andother times they will revert to the original "MenuItemX".
The simple solution is to use the Property Browser to edit the Names.
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.
--------------------
>From: "Larry Woods" <la***@lwoods.com>
>Subject: Trying to name submenus ("Edit Names") doesn't work!
>Date: Mon, 3 Nov 2003 15:14:29 -0700
>Lines: 11
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <e4*************@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.vb
>NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
>Path:

cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0

8
phx.gbl!TK2MSFTNGP09.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153324
>X-Tomcat-NG: microsoft.public.dotnet.languages.vb
>
>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 thenames >are still "MenuItemX". OTOH, the top-level menu items renamed just fine. >
>What might I be doing wrong?
>
>TIA,
>
>Larry Woods
>
>
>



Nov 20 '05 #5
Hi Larry,

I think you may try to use the properties page as a workaround.
Thank you for your information.

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.
--------------------
From: "Larry Woods" <la***@lwoods.com>
References: <e4*************@TK2MSFTNGP09.phx.gbl> <C6**************@cpmsftngxa06.phx.gbl>Subject: Re: Trying to name submenus ("Edit Names") doesn't work!
Date: Tue, 4 Nov 2003 07:12:28 -0700
Lines: 74
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153462
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:C6**************@cpmsftngxa06.phx.gbl...
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/de...-us/vbcon/html

/
vbtskaddingmenusitemstomenu.asp
MainMenu Component

http://msdn.microsoft.com/library/de...-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.
--------------------
>From: "Larry Woods" <la***@lwoods.com>
>Subject: Trying to name submenus ("Edit Names") doesn't work!
>Date: Mon, 3 Nov 2003 15:14:29 -0700
>Lines: 11
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <e4*************@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.vb
>NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
>Path:

cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0

8
phx.gbl!TK2MSFTNGP09.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153324
>X-Tomcat-NG: microsoft.public.dotnet.languages.vb
>
>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 thenames >are still "MenuItemX". OTOH, the top-level menu items renamed just fine. >
>What might I be doing wrong?
>
>TIA,
>
>Larry Woods
>
>
>



Nov 20 '05 #6
I have found that IF you DON'T try to replace the menu name by selecting the
default menu name in the dropdown, then it will replace the name correctly.
If you manually select the words ("menuitemX"), then type in the new name
then it WON'T replace the name.

At least that has been my experience.

(For what it's worth)

Larry

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:ec*************@cpmsftngxa06.phx.gbl...
Hi Larry,

I think you may try to use the properties page as a workaround.
Thank you for your information.

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.
--------------------
From: "Larry Woods" <la***@lwoods.com>
References: <e4*************@TK2MSFTNGP09.phx.gbl>

<C6**************@cpmsftngxa06.phx.gbl>
Subject: Re: Trying to name submenus ("Edit Names") doesn't work!
Date: Tue, 4 Nov 2003 07:12:28 -0700
Lines: 74
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153462
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:C6**************@cpmsftngxa06.phx.gbl...
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/de...-us/vbcon/html
/ vbtskaddingmenusitemstomenu.asp
MainMenu Component

http://msdn.microsoft.com/library/de...-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. --------------------
>From: "Larry Woods" <la***@lwoods.com>
>Subject: Trying to name submenus ("Edit Names") doesn't work!
>Date: Mon, 3 Nov 2003 15:14:29 -0700
>Lines: 11
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <e4*************@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.vb
>NNTP-Posting-Host: ip68-2-97-113.ph.ph.cox.net 68.2.97.113
>Path:

cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
8 phx.gbl!TK2MSFTNGP09.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153324
>X-Tomcat-NG: microsoft.public.dotnet.languages.vb
>
>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
>
>
>


Nov 20 '05 #7

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

Similar topics

1
by: Aarono Brown | last post by:
I've seen this question asked a couple times in this forum but never answered, so I guess my hopes aren't too high, but: I'm running > mysql Ver 12.21 Distrib 4.0.14, for pc-linux (i686) ...
5
by: Konrad L. M. Rudolph | last post by:
I hope this is the right NG, please notify me if not. I have got a problem with the "recent files" list of the start page in VS.NET: yesterday I created a new projekt which has the same name as...
2
by: Nalaka | last post by:
Hi (I am using visual studio 2005 beta 2) I have a simple asp.net data grid, with a edit (update and cancel) set. When the button mode is link, it works fine. But when the button mode is...
2
by: Learner | last post by:
Hello, I have a GridView control on my webform. I can see the data in my GridView control but I don't see any option to hide or delete the Edit column in the control. I don't have to have any...
0
by: Amil Hanish | last post by:
I want to add some different controls on my web page that have "edit" capabilities. This would be like a portal starter kit module where, if authenticated, the user could click an edit button to...
2
by: Parasyke | last post by:
Please help.... I have a form that I successfully add records to that I want to copy and turn into a form for editing records from that same table (It is imperitive that it be done this way, rather...
1
by: Kosmös Pollard | last post by:
Hey guys, I'm rather new to access and can not seem to figure out what is wrong with this code I will post below...but first...it was working perfectly fine before I added this: recSet2.Edit...
1
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to...
1
by: komaladevi | last post by:
can any one help me in writing acode -"how to edit "edit item template" dynamically""
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.