Answer the question
In order to leave comments, you need to log in
The input string had an incorrect format, how best to remake it?
I just started learning C#, I can't figure out how to convert a string to a number. The project is built, when entering data and clicking on the button, the error "The input string had an incorrect format" occurs.
Answer the question
In order to leave comments, you need to log in
Yes, it's probably trite. you have a fourth in the text box .. well, by chance .. not confused? exactly the fourth? and there is not an "empty" line? or an extra character?
how about debugging step by step and see what you are trying to convert?
and they would see for themselves, and people could show what you have there.
And so the compiler does not lie, you do not have the correct number format, not a number there at all. letters, spaces, blank))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question