Originally Posted by
yung
Post the whole code at least, because these function aren't telling us where or how they're being called/used.
Also you should add an "Else statement" because the code has nothing to return if you write a value too high.
And you don't even have a function where the previous value is saved, it just gets replaced.
You're using "ConvertToInt" which is useless because that only works if you input something like "3.14" it will output either 314 or 3 (rounded), I haven't used C# in a while
Right now aantallabel is your textbox where the user can input a value that's anything within an int.
So what did you do? You made textbox1 and user value output, but you did not make a function for the 2nd value that you want to use. Right now your code is literally saying "print in the users input, plus the textbox itself".