Tuesday, 20 August 2013

Convert.ToInt32(String) in C# not working?

Convert.ToInt32(String) in C# not working?

I have a text box named textBox1, and In a certain case, I want to convert
the string in the textbox to an integer for later use as an integer.
It's throwing an error that I can't even understand. Here is a screenshot:
(I need 10 rep. to post images directly) http://i.stack.imgur.com/lxZa0.png
I would really appreciate it if you could give me an answer or fix to my
code, and explain why it doesn't/does work.

No comments:

Post a Comment