473,395 Members | 1,974 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,395 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 1364
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 Favorites into my application. For this I need to...
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 menuitems i wanna add (tools -> external -> {list of...
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 the entrys are set correctly. I just don't know why...
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 submenu item ? MenuItems doesn't have a Name...
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 editMenu_Popup(object sender, System.EventArgs e) {...
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 result of the design, I need to have different...
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 In f.ContextMenu.MenuItems For Each mi2 In...
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). Why this change ? Thing is, I would like to...
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 that I create in the future. The current one that I...
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: 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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.