Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textbox key event

Status
Not open for further replies.

TRYP

Programmer
Jun 20, 2000
136
US
is there a way to disable the system "ding" when using a textbox keypress or keydown event handler ?

-tryp

 
Do you mean when the enter key is pressed? When you receive an 'ENTER' you have to intercept and set keyascii to 0

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

If this is not what you want, please be a bit more detailed.


David Paulson


 
david,
i'll try that.
the code behind the event does check for vbKeyReturn and does a certain action if true.
i get the ding when i push enter and the certain action takes place.

thanks,
-tryp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top