I would like to assign a CTRL Q shortcut to the Quit submenuitem (filesubitem1) but can't find
the right syntax. Any assistance will be greatly appreciated. Thank you.
If user_wants_file_menu = True Then
Dim fileItem As ToolStripMenuItem = New ToolStripMenuItem("File")
Dim filesubitem1 As ToolStripMenuItem = New ToolStripMenuItem("Quit")
filesubitem1.ShowShortcutKeys = True
filesubitem1.ShortcutKeys = Shortcut.CtrlQ 'this errors at compile time
fileItem.DropDownItems.Add(filesubitem1)
menustrip.Items.Add(fileItem)
AddHandler filesubitem1.Click, AddressOf QuitToolStripMenuItem_Click_1
End If