I am rewriting a VB6 application in VB 2017
The new version has a ToolStrip dropdown button named TStripDropD_Sort. It is populated at run time. The code so far is based on the example here:
This is the procedure statement:
Private Sub TStripDropD_SortItemClicked(sender As Object, e As ToolStripItemClickedEventArgs) Handles TStripDropD_Sort.ItemClicked
It gives a compile-time error which I don't know how to resolve:
'Handles clause requires a WithEvents variable defined in the containing type or one of its base types'