I am working on a desktop project for Windows. I am trying to assign a shortcut key to a DesktopMenuItem on a drop-down menu for a Toolbar Button. I am getting a syntax error for the line with the property assignment for the following code:
// Create a drop-down menu for Help Toolbar Button
Var HelpButtonMenu As New DesktopMenuItem
HelpButtonMenu.AddMenu(New DesktopMenuItem("Help Manual"))
HelpButtonMenu.AddMenu(New DesktopMenuItem("Help With This Page").Shortcut = "F1")
HelpButtonMenu.AddMenu(New DesktopMenuItem("About"))
// Assign the new menu to the toolitem..
MainToolBar.tiHelp.Menu = HelpButtonMenu
Any help would be greatly appreciated.