G
Guest
To do a search and populate a listbox when the user presses Enter, I have
implemented btnGo.PerformClick method in the SearchTextBox.KeyPress as
follows:
Protected Overrides Sub OnKeyPress(ByVal e As
System.Windows.Forms.KeyPressEventArgs)
MyBase.OnKeyPress(e)
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
If Not mGoButton Is Nothing Then
mGoButton.PerformClick()
End If
End If
End Sub
It is working fine except for one problem - the system makes an alert sound
everytime (the kind you hear when you click outside a modal dialogbox). How
can I stop this sound? Thanks
implemented btnGo.PerformClick method in the SearchTextBox.KeyPress as
follows:
Protected Overrides Sub OnKeyPress(ByVal e As
System.Windows.Forms.KeyPressEventArgs)
MyBase.OnKeyPress(e)
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
If Not mGoButton Is Nothing Then
mGoButton.PerformClick()
End If
End If
End Sub
It is working fine except for one problem - the system makes an alert sound
everytime (the kind you hear when you click outside a modal dialogbox). How
can I stop this sound? Thanks