winform中 enter 回车事件的实现

1.

设置事件

2. 在事件中加判断,如果符合 keys.ente。  才执行后面的代码。 

 

原文地址:https://www.cnblogs.com/bingyizhihun/p/14874833.html