hi guys just wanted to ask how I can add numbers in string form, I tried to add them but instead of getting 9 I get 36. here's how I tried it:
Compute comp = new Compute();
comp.Bet = betTextbox.Text;
comp.Funds = fundsTextbox.Text;
betTextbox.Text = "6";
fundsTextbox.Text = "3";
Convert.ToInt32(betTextbox.Text);
Convert.ToInt32(fundsTextbox.Text);
string total = fundsTextbox.Text + betTextbox.Text;
Convert.ToInt32(total);
prizeTextbox.Text = total;
My plan is to add the values of betTextbox.Text and fundsTextbox.Text and get 9 as the sum. But I get 9 as a result, can anyone help me out please? thank you very much for the ones who will help out. :)