private void txtCode_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == Convert.ToChar("'")) { e.Handled = true; } }
--
private void txtCode_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == Convert.ToChar("'")) { e.Handled = true; } }
--
转载于:https://www.cnblogs.com/runliuv/archive/2012/07/23/2604509.html