I have an application where it should become possible to customize the menu's available to the users(s).
Amongst other info, I let the administrator select the values form the shortcut that goes with a menu he has created. This value is stored in the database: an OR of the Ctrl/Alt/Shift and the keycode of the actual key (A-Z, F1-F12, ...). The problem is that when the application loads the menus, it wont accept assigning a variable to the .ShortutKeys-thing of the ToolStripMenuItem. The issue is that ShortutKeys is an 'enum' and only accepts something like 'Keys.A', but not the value coming from the database. I could build a large Select Case around it: Select case dbValue
