摘要:
C# TEXTBOX中 只允许输入数字和一个小数点 private void txtPrice_KeyPress(object sender, KeyPressEventArgs e) { if (!((e.KeyChar >= '0' && e.KeyChar <= '9') || e.KeyChar == '.' || e.KeyChar == '')) { e.Handled = true; } else { if (e.KeyChar == '.') { string str 阅读全文