0

I have this line of code that should convert a label and a textbox to int32 and then subtract them with eachother...

retur = Convert.ToInt32(pengarTxtbox.Text) - Convert.ToInt32(kostarLbl.Text);

retur is a int aswell.

This line gives me the error: Input string was not in a correct format. (I've never recived this error before)

WHY?! Am I missing something?

4

2 に答える 2