Hey there, so im making a calculator to make my life a little bit easier ^^
so far its working well, I just got one problem o.O! If I enter a number with a comma like 0,5 into one of the textboxes and click calculate it will terminate, what can i do to fix this :)?
private void button2_Click(object sender, EventArgs e)
{
int number1;
int number2;
float answer;
number1 = int.Parse(textBox4.Text);
number2 = int.Parse(textBox5.Text);
answer = number1 + number2;
textBox7.Text = answer.ToString();
textBox8.Text = answer.ToString();
}
kind regards -Jazerix
Edit: ive tried inserting 0.5 and ½ instead, still doesn't work :(