c# 回车键禁用问题解决________ e.SuppressKeyPress = true;

c# 回车键禁用问题解决________ e.SuppressKeyPress = true;
private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
           
            if (e.KeyCode == Keys.Enter)
            {
                e.SuppressKeyPress = true;
                
            }
        }

你可能感兴趣的:(c# 回车键禁用问题解决________ e.SuppressKeyPress = true;)