converted.Year = textBox2.Text;
textBox17.Text = converted.Year;
int year2 = int.Parse(converted.Year);
converted.Year = year2.ToString();
Hi! I would like the final assigned value of textBox17
to be of an int
type.
Initially, I tried: textBox17.Text = int.Parse(converted.Year);
But it only returns an error message that it can't do the conversion.
So I came up with the 2 last lines, but I'm not really sure if it really outputs an int
?
I think I probably have walked in circles around the problem? Hmm...