470,614 Members | 1,440 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,614 developers. It's quick & easy.

How to stop the beep on keypress?

Hi again guys,

I apologize as it's been posted before and I'm sure it's an easy problem
to fix, but the message has long since left my news server now that I need
it, and I can't find it anywhere,..

How do you stop the beep that occurs when you press the enter key in a
control such as a textbox or combobox?

~Brian
Nov 20 '05 #1
8 12373
"strchild" <st******@hotmale.com> schrieb
Hi again guys,

I apologize as it's been posted before and I'm sure it's an easy
problem
to fix, but the message has long since left my news server now that I
need it, and I can't find it anywhere,..

How do you stop the beep that occurs when you press the enter key
in a
control such as a textbox or combobox?
~Brian

Private Sub TextBox1_KeyPress( _
ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles TextBox1.KeyPress

If e.KeyChar = vbCr Then
e.Handled = True
End If

End Sub
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* "strchild" <st******@hotmale.com> scripsit:
How do you stop the beep that occurs when you press the enter key in a
control such as a textbox or combobox?


See:

<http://groups.google.com/groups?ie=UTF-8&q=group%3A*dotnet*+beep+textbox>

--
Herfried K. Wagner
MVP ∑ VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #3
Wow, the solution is too annoyingly easy you two!

Thank you Armin and Herfried very much!

Nice to be able to squish something I've been having to live with for ages
now, and actually you even answered a question I didn't know I had, Mr
Wagner! :-) I didn't realize Google had a morgue of newsgroup postings
available to search. That's such a handy resource to have at one's
fingertips!

Thank you both,
Brian

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bo*************@ID-208219.news.uni-berlin.de...
* "strchild" <st******@hotmale.com> scripsit:
How do you stop the beep that occurs when you press the enter key in a
control such as a textbox or combobox?


See:

<http://groups.google.com/groups?ie=UTF-8&q=group%3A*dotnet*+beep+textbox>

--
Herfried K. Wagner
MVP ∑ VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>

Nov 20 '05 #4
* "strchild" <st******@hotmale.com> scripsit:
now, and actually you even answered a question I didn't know I had, Mr
Wagner! :-) I didn't realize Google had a morgue of newsgroup postings
available to search. That's such a handy resource to have at one's
fingertips!


Thanks for posting that. There are some people in this group who think
that Google links do not help...

:-)

--
Herfried K. Wagner
MVP ∑ VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #5
Cor
Herfried,

Thanks for posting that. There are some people in this group who think
that Google links do not help...

Has this sentence to tell us something?

I never saw any arguing about this, who were it?

Cor
Nov 20 '05 #6
* "Cor" <no*@non.com> scripsit:
Thanks for posting that. There are some people in this group who think
that Google links do not help...


Has this sentence to tell us something?

I never saw any arguing about this, who were it?


Be happy that you didn't see the thread about this topic.

--
Herfried K. Wagner
MVP ∑ VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #7
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote...
* "Cor" <no*@non.com> scripsit:
Thanks for posting that. There are some people in this group who think
that Google links do not help...


Has this sentence to tell us something?

I never saw any arguing about this, who were it?


Be happy that you didn't see the thread about this topic.


I'll explain it... "there isn't a person on Earth who ever posted that links
to Google do not help" Perhaps that make it clearer... something tells me
it won't however.

What is to be gained by mischaracterizing just about every reasonable thing
that is posted? That's a rhetorical question of course... I can feel you
thinking up a good reason even as I type this.

Nov 20 '05 #8
Cor
Hi Herfried,

I think I "read" more messages in this newsgroup than you.

I know that this phrase could never be from Fergus.
Thanks for posting that. There are some people in this group who think
that Google links do not help...


So it was not Fergus. "Some" is more than one. I knew that Tom had said
something in a discussion, but not in the context as is writtten above.

The sentence you use above is needless abusing "some" regulars in this
newsgroup and for not regulars that can be all except Herfried.

I don't ask an excuse, but please don't do this?

Cor


Nov 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

45 posts views Thread by StopThisAdvertising | last post: by
3 posts views Thread by Keith Smith | last post: by
1 post views Thread by Jay Banks | last post: by
4 posts views Thread by Ross | last post: by
2 posts views Thread by Paul | last post: by
2 posts views Thread by =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.