My code has LOTS of places where it sets-up new menu items, like:
With delMenu.Items
.Add(New RadMenuItem("..section from document", New EventHandler(AddressOf mnuDeleteSectionFromDocument_Click)))
...etc
I am moving it all over to a new version of my app, which is, I think, using a newer verison of the winforms framework.
This code still comiles, but doesn't create the link from the menu item to the address handler, whereas the more long-form approach works just fine:
Dim aMenuItem = New RadMenuItem("test")
AddHandler aMenuItem.Click, AddressOf mnuTest
delMenu.Items.Add(aMenuItem)
Was there a change in the APi, in which case I need to change everything, or is there another way to create all the menu options and their handlers quickly?