你可以编写 OnKeyDown 事件。你可以使用 e.SuppressKeyPress 来告诉 .NET 你已经处理了该键。就像这样:if (e.KeyCode == Keys.Enter) { e.SuppressKeyPress = true; }