Winforms int problem
I want the user to be able to enter an int no matter their input, 59 or 59.99, is there a way to do this ?
4 Replies
Do you mean you want the value to remain as 59.99 if that's what they enter?
like this yes, i want it to be an int so that way i can have the program calculate the total every time they add a part. When I add whole numbers its no issue but when i start using decimals its an error
Yes, an int has no decimal part
You probably want to use
decimal
insteadUse a NumericUpDown control