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;
            }
        }

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-02-13
  • 2021-11-27
  • 2021-07-01
猜你喜欢
  • 2022-12-23
  • 2021-07-06
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
相关资源
相似解决方案