private void AssignKey(ToolStripMenuItem item, string keyName)
{
try
{
Keys key = (Keys)Enum.Parse(typeof(Keys), keyName);
item.ShortcutKeys = key;
}
catch (ArgumentException)
{
MessageBox.Show("Unknown key " + keyName);
}
}
EDIT
No update available.
Anywho, just save the shortkeys in the "config" class, which has a Save method and saves it every time the software closes.
source
share