Converting strings to enums

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a simple question:
When i get string value for enum type can i convert it somehow back to enum
type?
I would like to do something like this....
string str = System.Windows.Keys.Up.ToString();
....
System.Windows.Forms.Keys val = str;
 
Back
Top