Another Vb Conundrum

I have a text box. A single text box used for searching. I have code within the _KeyPress() function to check to see if the key that is pressed is the "Enter" key (KeyAscii = 13). It works fine except the damn "ding" sound that you get when you press the Enter key. Is there a way to supress the "ding" because the "ding" really get on my nerves when it "dings" and I don't like "dings" in my programs.

"ding"

#125248

"ding". Subclassing is your friend :) There should be millions of examples out there for subclassing an editbox in VB.

#130224

Well, this also works (figured it out about 2 days ago), in the text_change (where I have all the code) add "KeyAscii = 0" at the end and it won't "ding"

#130321