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

Menuitems do not display

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


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

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

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

Replies have been disabled for this discussion.