How can I transform a string to an int, then output that int to a textbox again? I made the thread title Convert string to int, because I will use this for int, long, double ... etc.
private void GetAnswer_Click(object sender, EventArgs e)
{
string di = diameter.Text; /* diameter is the input textbox */
float pi = di;
answer.Text = pi; /* answer is the answer textbox */
}
Question
Ultra Frosty
How can I transform a string to an int, then output that int to a textbox again? I made the thread title Convert string to int, because I will use this for int, long, double ... etc.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts