这样的吗? Option ExplicitPrivate Sub Command1_Click() DoEvents End SubPrivate Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer) Call Command1_Click End Sub 貌似没有声音
从WINDOWS设置上解决,搜一搜,应该可以的……
那是回车引起的,把它过滤掉 Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then KeyAscii = 0 End If End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then call command1_click
End Sub这是代码
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then KeyAscii = 0 Call Command1_Click End If End Sub
我的是vb6.0按你的思想改成,还是有声音!以下是代码 Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 13 Then KeyCode = 0 Call Command1_Click End If End Sub
Option ExplicitPrivate Sub Command1_Click()
DoEvents
End SubPrivate Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
Call Command1_Click
End Sub
貌似没有声音
从WINDOWS设置上解决,搜一搜,应该可以的……
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
End If
End Sub
If KeyAscii = 13 Then call command1_click
End Sub这是代码
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
Call Command1_Click
End If
End Sub
我的是vb6.0按你的思想改成,还是有声音!以下是代码
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
KeyCode = 0
Call Command1_Click
End If
End Sub
看回帖要认真