i already have a code that enables hit only numbers to the textbox,
private void SumOfMoney_TextChanged(object sender, TextChangedEventArgs e)
{
long a;
if (long.TryParse(SumOfMoney.Text, out a))
{
// If Not Integer Clear Textbox text or you can also Undo() Last Operation :)/>
SumOfMoney.Clear();
}
}
How can I change the code to enable enter number like 4.234 or 234.235
Thanks a lot !!!

New Topic/Question
Reply



MultiQuote



|