Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21277

Textbox_Keypress = 13 Event produces sound

$
0
0
I have code similar to the following in my project:

Code:

Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        MsgBox "Enter pressed.",vbOkonly,"Result"
    End If
End Sub

Why does this produce similar to a 'ding' sound in Windows, and what can I do to stop it? I prefer not to mute my speakers, surely there is something that can be done to suppress the sound.

Viewing all articles
Browse latest Browse all 21277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>