I have a key combination like this
Keys key=Keys.Control | Keys.Shift | Keys.D ...
I don’t know how to expand key variable to separated Keys values. Maybe like this
foreach(Keys k in key) { MessageBox.Show(k.ToString()); }
this seems stupid to me. How to do this?
1 Answer