private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar != '\x0D') { return; } }
判断文本框内录入的字符是否为回车
本文共 258 字,大约阅读时间需要 1 分钟。
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar != '\x0D') { return; } }
判断文本框内录入的字符是否为回车
转载于:https://www.cnblogs.com/zhuduozhe/archive/2012/10/07/2714234.html