]Ciao
Scusa se ti rompo, ma ho ancora un problema su questa parte:
in particolare sull'istruzione itemCountLines.Click += Function(sender, args) CountLines()
mi dice che itemCountLines.Click non è dichiarato e non è accessibile
in particolare su
''' <summary>
''' Creates the context menu. This can be a single menu item or a tree of them.
''' </summary>
''' <returns>
''' The context menu for the shell context menu.
''' </returns>
Protected Overrides Function CreateMenu() As ContextMenuStrip
' Create the menu strip.
Dim menu = New ContextMenuStrip()
' Create a 'count lines' item.
Dim itemCountLines = New ToolStripMenuItem() With { _
Key .Text = "Count Lines...", _
Key .Image = Properties.Resources.CountLines _
}
' When we click, we'll count the lines.
itemCountLines.Click += Function(sender, args) CountLines()
' Add the item to the context menu.
menu.Items.Add(itemCountLines)
' Return the menu.
Return menu
End Function