D
**Developer**
I have a usercontrol in which the IDE generated context menu statement is:
Friend WithEvents ContextMenuThumbnails As System.Windows.Forms.ContextMenu
I want to save the contents of it so I tried:
Private mMenuSaved As ContextMenu = Me.ContextMenuThumbnails.clonemenu
But the compiler says:
C:\Documents and Settings\Cal\My Documents\Visual Studio Projects\CAG
Studio\CAG ControlThumbnails\ControlThumbnails.vb(531):
'System.Windows.Forms.Menu.Protected Sub CloneMenu(menuSrc As
System.Windows.Forms.Menu)' is not accessible in this context because it is
'Protected'.
Is there a way to get around this?
Thanks
Friend WithEvents ContextMenuThumbnails As System.Windows.Forms.ContextMenu
I want to save the contents of it so I tried:
Private mMenuSaved As ContextMenu = Me.ContextMenuThumbnails.clonemenu
But the compiler says:
C:\Documents and Settings\Cal\My Documents\Visual Studio Projects\CAG
Studio\CAG ControlThumbnails\ControlThumbnails.vb(531):
'System.Windows.Forms.Menu.Protected Sub CloneMenu(menuSrc As
System.Windows.Forms.Menu)' is not accessible in this context because it is
'Protected'.
Is there a way to get around this?
Thanks