VB3 How to Disable the ENTER Key BEEP in a VB Text Box (78305)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
- Microsoft Visual Basic for MS-DOS
This article was previously published under Q78305 SUMMARY
In a Microsoft Visual Basic for Windows text box, the ENTER key causes a
warning beep to sound only if the MultiLine property is set to False (the
default) and the Warning Beep option is selected in the Sound dialog box of
the Windows Control panel.
To disable the beep, in the KeyPress event procedure for the text box, set
the value of KeyAscii (which is a parameter passed to KeyPress) equal to
zero (0) when the user presses the ENTER key.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbcode KB78305 |
---|
|