private void txtmoney_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar >= 48 && e.KeyChar <= 57) || e.KeyChar == 46 || e.KeyChar == 8)
{
return;
}
else
{
e.KeyChar = (char)Keys.None;
return;
}
}
{
if ((e.KeyChar >= 48 && e.KeyChar <= 57) || e.KeyChar == 46 || e.KeyChar == 8)
{
return;
}
else
{
e.KeyChar = (char)Keys.None;
return;
}
}