可以直接在窗体的AcceptButton和CancelButton中设置相应的按钮。
也可以在后头通过代码设置:
this.AcceptButton = (IButtonControl)btnSave; this.CancelButton = (IButtonControl)btnCancel;
Powered by: 博客园 Copyright © 2024 eastson Powered by .NET 9.0 on Kubernetes