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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top