I\'m building a temperature conversion application in Visual Studio for a C++ course. It\'s a Windows Forms application.
My problem is, when I run the application if I d
This will check that the entry in your textbox is convertible to a number.
double val; bool result = System::Double::TryParse(txtFahrenheit->Text,val); if (result) { //Converted successfully, you can use val } else { //Error }