c# textbox响应回车并且去除“咚”的一声

来源:互联网 发布:java数组转json字符串 编辑:程序博客网 时间:2024/06/05 02:05
   private void roomIDTextBox_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == System.Convert.ToChar(13))
            {
                // to do 业务
                e.Handled = true;
            }
        }
0 0
原创粉丝点击