用以下的方法可以消除聲音.
Private Sub Text1_KeyPress(KeyAscii As Integer)
Dim strvalid As String
strvalid = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
KeyAscii = Asc(UCase(Chr(KeyAscii)))
If KeyAscii > 26 Then
If InStr(strvalid, Chr(KeyAscii)) = 0 Then KeyAscii = 0
End If
If KeyAscii = Asc(vbCr) Then KeyAscii = 0
End Sub