Live Chat Icon For mobile
Live Chat Icon

How do I convert a string to an double or int?

Platform: WinForms| Category: Strings

One way is to use static members of the Convert class in the System namespace.

		textBoxResult.Text = Convert.ToString(Convert.ToDouble(textBox1.Text) * Convert.ToDouble(textBox2.Text));

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.