我在表单上有一个带有自动完成功能的.NET TextBox.表单还定义了AcceptButton和CancelButton.如果我尝试使用Enter键提交建议或使用Esc关闭下拉菜单,我的表单将关闭.我该如何防止这种行为?
.net c# textbox autocomplete winforms
.net ×1
autocomplete ×1
c# ×1
textbox ×1
winforms ×1