472,341 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Menuitems do not display

I have a mainmenu menuitem
that contains a Recently Used Files menuitem
If at design time I include a menuitem in the Recently Used Files menuitem
collection it will display OK
If I programmatically add more menuitems to the Recently Used Files menuitem
they show ok

However, if I clear the Recently Used Files menuitem collection
and then add more menuitems they do not display.
What is weird is that even though they do not display the count property
shows that they are added.

Has anyone seen anything like this?

Do you have any suggestions as to what is going on and/or how to fix it?

Thanks
Mar 9 '07 #1
3 1299
Active

that depends how you clear them, can you show us the code how you do that?

Cor

" active" <ac**********@a-znet.comschreef in bericht
news:OI**************@TK2MSFTNGP03.phx.gbl...
>I have a mainmenu menuitem
that contains a Recently Used Files menuitem
If at design time I include a menuitem in the Recently Used Files menuitem
collection it will display OK
If I programmatically add more menuitems to the Recently Used Files
menuitem they show ok

However, if I clear the Recently Used Files menuitem collection
and then add more menuitems they do not display.
What is weird is that even though they do not display the count property
shows that they are added.

Has anyone seen anything like this?

Do you have any suggestions as to what is going on and/or how to fix it?

Thanks


Mar 9 '07 #2
Here is some code

Would more help

It's a big routine or I'd show it all

thanks

Friend WithEvents MenuItemRecentlyUsedFiles As System.Windows.Forms.MenuItem
'

'MenuItemRecentlyUsedFiles

'

Me.MenuItemRecentlyUsedFiles.Index = 13

Me.MenuItemRecentlyUsedFiles.MergeOrder = 50

Me.MenuItemRecentlyUsedFiles.MergeType =
System.Windows.Forms.MenuMerge.MergeItems

Me.MenuItemRecentlyUsedFiles.Text = "Recently Used Files"

MenuItemRecentlyUsedFiles.MenuItems.Clear()
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:ew**************@TK2MSFTNGP03.phx.gbl...
Active

that depends how you clear them, can you show us the code how you do that?

Cor

" active" <ac**********@a-znet.comschreef in bericht
news:OI**************@TK2MSFTNGP03.phx.gbl...
>>I have a mainmenu menuitem
that contains a Recently Used Files menuitem
If at design time I include a menuitem in the Recently Used Files
menuitem collection it will display OK
If I programmatically add more menuitems to the Recently Used Files
menuitem they show ok

However, if I clear the Recently Used Files menuitem collection
and then add more menuitems they do not display.
What is weird is that even though they do not display the count property
shows that they are added.

Has anyone seen anything like this?

Do you have any suggestions as to what is going on and/or how to fix it?

Thanks



Mar 9 '07 #3
This is how I add
Tho I've tried other merge ways

M = MenuItemRecentlyUsedFiles.MenuItems.Add(0, New
MenuItem(String.Copy(thePath), AddressOf HandlesRecentlyUsedFileItem_Click))

MenuItemRecentlyUsedFiles.MenuItems(M).MergeOrder = 0

MenuItemRecentlyUsedFiles.MenuItems(M).MergeType = MenuMerge.MergeItems


" active" <ac**********@a-znet.comwrote in message
news:OJ**************@TK2MSFTNGP06.phx.gbl...
Here is some code

Would more help

It's a big routine or I'd show it all

thanks

Friend WithEvents MenuItemRecentlyUsedFiles As
System.Windows.Forms.MenuItem
'

'MenuItemRecentlyUsedFiles

'

Me.MenuItemRecentlyUsedFiles.Index = 13

Me.MenuItemRecentlyUsedFiles.MergeOrder = 50

Me.MenuItemRecentlyUsedFiles.MergeType =
System.Windows.Forms.MenuMerge.MergeItems

Me.MenuItemRecentlyUsedFiles.Text = "Recently Used Files"

MenuItemRecentlyUsedFiles.MenuItems.Clear()
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:ew**************@TK2MSFTNGP03.phx.gbl...
>Active

that depends how you clear them, can you show us the code how you do
that?

Cor

" active" <ac**********@a-znet.comschreef in bericht
news:OI**************@TK2MSFTNGP03.phx.gbl...
>>>I have a mainmenu menuitem
that contains a Recently Used Files menuitem
If at design time I include a menuitem in the Recently Used Files
menuitem collection it will display OK
If I programmatically add more menuitems to the Recently Used Files
menuitem they show ok

However, if I clear the Recently Used Files menuitem collection
and then add more menuitems they do not display.
What is weird is that even though they do not display the count property
shows that they are added.

Has anyone seen anything like this?

Do you have any suggestions as to what is going on and/or how to fix it?

Thanks




Mar 9 '07 #4

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

Similar topics

1
by: Venkatesh | last post by:
Hi Everybody, This is the first timw I am entering into this Group. I am developing a VB Project with an MDI form. I want to display IE...
0
by: Deutsche Dogge | last post by:
Hi. I'M having a weird problem with addign menuitems to a menu dynamically on the popup event of the menuitem containing the container of the...
0
by: Kreisquadratur | last post by:
Below is s snippet of my code, which should add menuitems as a submenu of an item in a contextmenu. But only the first time the contextmenu opens...
1
by: Steve Tan | last post by:
1. How can I loop through all the items and subitems for Menu of a Windows Form (c#) ? Recursive function? 2. How can I uniquely identify a...
0
by: Brian | last post by:
Create a simple MDI form and a child form, and try the following simple code to add a new menu item on the Edit menu popup: private void...
5
by: Davie | last post by:
I'm developing an application on the smartphone. To reduce the size of the application i'm using panels where appropriate instead of forms. As a...
5
by: Jorge Cavalheiro | last post by:
Hello I am trying to browse thru all menuitens of contextmenus. The form has 3 contextmenus. mi and mi2 as menuitems, f is a form For Each mi...
0
by: cc | last post by:
hi, when adding items to a MenuStrip VS 2005 defines them as objects of type ToolStripmenuItem ??? I would expect MenuItems (as in VS 2003)....
1
by: cnixuser | last post by:
Hello, I am currently attempting to modify an ASP.NET menu that I found online so that I will be better able to control the look and feel of menus...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.