PC Review


Reply
Thread Tools Rate Thread

Adding a MenuItem causes a problem

 
 
**Developer**
Guest
Posts: n/a
 
      13th Aug 2005
Private Sub ContextMenuEdit_Popup(ByVal sender As Object, ByVal e As
EventArgs) Handles ContextMenuEditor.Popup

MenuItemPasteSpecial.MenuItems.Add(0, New MenuItem("Locale", AddressOf
HandlesMenuItemPasteSpecialItems_Click))

End Sub



PasteSpecial is a submenu of a submenu of the main contextmenu

It has one item in it's menuitems collection but the problem exists with no
such items

PasteSpecial appears in it's menu with the filled in arrow symbol that
indicated there are subitems

This is the only popup event handler



If I include the Add statement above when PasteSpecial is selected the
subMenu does not appear

Actually it appears the first time I open the context menu but only the
first time.

Works OK with the Add statement commented out



Been chasing this for quite a while so I'd appreciate any suggestion to try
something.

Even any unrelated statement of how it is possible for the arrow to appear
and the submenu not open.



Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding to an existing MenuItem's MenuItem Collection Dynamically snesbit Microsoft Dot NET Framework Forms 3 9th Mar 2005 03:08 AM
Adding to an existing MenuItem's MenuItem Collection Dynamically snesbit Microsoft VB .NET 1 9th Mar 2005 03:05 AM
Problem adding menuitem to context menu attached to NotifyIcon Claire Microsoft C# .NET 4 3rd Mar 2005 08:47 AM
Problem adding menuitem Claire Microsoft C# .NET 0 2nd Mar 2005 12:32 PM
ArgumentException when adding a MenuItem INCA Hellas Ltd Microsoft Dot NET Compact Framework 1 18th Nov 2004 11:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:46 AM.