为什么会“叮”的一声?
当焦点在文本框时,按回车键,喇叭就“叮”的一声。如何使它不响?

解决方案 »

  1.   

    Private Sub Text1_KeyPress(KeyAscii As Integer)
       If KeyAscii = 13 Then KeyAscii = 0
    End Sub
      

  2.   

    “If KeyAscii = 13 Then KeyAscii = 0 ”,不灵
    “在控制面板里得声音里修改”,不要,我要的是软件本身的性能。
      

  3.   

    第一种:Private Sub Text1_KeyPress(KeyAscii As Integer)
       If KeyAscii = 13 Then KeyAscii = 0
    End Sub第二种:
      

  4.   

    谁说用keypress不行的,我试了。你再试一下,不行就把电脑扔下楼:)不过扔的时候通知我一声,我内存条坏了,看能不能从你那捡一根过来:)