I’m developing a kind of calculator for the Windows Phone.
It doesn’t need to use decimals. (who needs .39 of a brick)
How would I detect that there is a decimal in a string or a textBox?
EDIT: Thanks, @Bala R and @Afnan. But what I was after was something that filtered out letters as well. My answer’s below.
Modyfying the
Bala Rcode givesthis will remove the invalid characters that are entered as the input is written