PDA

Click to See Complete Forum and Search --> : text box


badgers
Jan 5th, 2000, 03:15 AM
is there a way to suppress the system tone that you get when someone hits enter in a text box? The user enters info in this text box. when they hit enter I run some code. This all works but the users are asking me why their computer is making a tone
thank you for your time and have a good day

------------------
I am so skeptacle, I can hardly believe it!

jpark
Jan 5th, 2000, 03:26 AM
Insert KeyAscii = 0 when Enter Key is detected.

If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{TAB}"
End If

Joon

badgers
Jan 5th, 2000, 03:33 AM
thank you very much. Why the send
SendKeys "{TAB}"?
it works without it

jpark
Jan 5th, 2000, 04:24 AM
Sorry, that was just my code for moving focus to next control. :)

Should be this

If KeyAscii = 13 Then
KeyAscii = 0
' Run ur Code here
End If

Joon