本文介绍了系统在keyDown上发出蜂鸣声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好。为什么这个代码在点击按钮时发出蜂鸣声? void SearchFeild_KeyDown( object sender,KeyEventArgs e) { // 当用户填写搜索字段并按Enter键时,将点击curent按钮搜索 if (e.KeyCode == Keys.Enter& & btnBack.Visible == false ) { btnSearcch.PerformClick(); e.Handled = true ; } else if (e.KeyCode == Keys.Enter& & btnBack.Visible == true ) { btnBack.PerformClick(); e.Handled = true ; } } 提前感谢。解决方案 hi all. why this code make beep when buttons clicked?void SearchFeild_KeyDown(object sender, KeyEventArgs e) { //when user fill search fields and press Enter the curent button search will be clicked if (e.KeyCode == Keys.Enter && btnBack.Visible == false) { btnSearcch.PerformClick(); e.Handled = true; } else if (e.KeyCode == Keys.Enter && btnBack.Visible == true) { btnBack.PerformClick(); e.Handled = true; } }thanks in advance. 解决方案 这篇关于系统在keyDown上发出蜂鸣声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-07 07:11