if (e.Modifiers.CompareTo(Keys.Shift) == 0 && e.KeyCode == Keys.Enter) { return; } e.SuppressKeyPress = true;
C# 组合键 判断,文本框不接受纯回车enter
原文:https://www.cnblogs.com/LuoCore/p/15124065.html