Convert combobox string value to int

Posted by asli on Stack Overflow See other posts from Stack Overflow or by asli
Published on 2010-05-14T00:10:26Z Indexed on 2010/05/14 0:34 UTC
Read the original article Hit count: 240

Filed under:

I have a question about converting types. I want to change the currently selected combobox value string to an int, but I get errors

My code:

int.Parse(age.SelectedItem.ToString());

What can I do for this problem?

© Stack Overflow or respective owner

Related posts about combobox