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

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

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.