-
Is it possible to get rid of the system beep whenever I have the enter key hit? I'm not sure if it has anything to do with this specific code:
Private Sub t_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
DoEvents
If editrow <> 0 And editcol <> 0 Then
If db.TextMatrix(editrow, editcol) <> t.Text Then db.TextMatrix(editrow, editcol) = t.Text
editrow = 0
editcol = 0
End If
db.SetFocus
t.Visible = False
End If
End Sub
but whenever I run this, a loud beep occurs. Thanks in advance!
-
Change the KeyAscii in the KeyHit property to 0 after your done with it.
I think this should help.
-
If this is a Text.Box, try to change it to MultiLine. That helps .
-
Thanks a lot
Thanks guys. Setting the KeyAscii to 0 worked.