프로그래밍/C#
[C#] Convert String to System.Windows.Forms.Shortcut
암리타
2012. 3. 23. 18:10
string key = ConfigFile.Instance.key1 + "+" + ConfigFile.Instance.key2;
KeysConverter conv = new KeysConverter();
Keys keys = (Keys)conv.ConvertFromString(key);
hotkey.Shortcut = (System.Windows.Forms.Shortcut)keys;