I am having three textboxes one inputting hours, one numbers and one power rate and a button but am having a formatException whenever i try to input values in the textboxes. How can i fore go this please? Whenever i compile it runs well but i am unable to input the values. Help please. Thanks!
int num1 = int.Parse(TextBox1.Text);
double num2 = double.Parse(TextBox2.Text;);
int num3 = int.Parse(TextBox3.Text;);
soln1 = num1 * num2 * num3;
MessageBox.Show(soln1.ToString());