473,231 Members | 1,634 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

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 12535
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: QA | last post by:
When the page is refreshed/reloaded, Mozzila or Opera are fine, but in IE, it has a Beep Sound. Is there a way to turn it off from JS or serverside?
45
by: StopThisAdvertising | last post by:
Hi there, We all know Steve Santos. He *really* is an advertising and job-hunting machine. A lot of us have asked him *many* times and in different ways to stop his blatant advertising. This has...
5
by: jstaggs39 | last post by:
i am posting this message again in an attempt to solicit more responses. i want to add a function that will NOT allow the form to be ran if the dates entered in the dlgdates box have already been...
2
by: Cybertof | last post by:
Hello, I want to change focus from one textbox to another next to an 'ENTER' keypress. But each time the user presses the ENTER key in a non multine textbox, the systems beeps. How to...
3
by: Keith Smith | last post by:
Whenever a KeyDown event is launched my app makes a "beep". How can I stop this annoying beep? If this doesn't make sense then I could post some code.
1
by: Jay Banks | last post by:
I know this was recently posted in reference to a textbox, but I'm having a similar problem, and can't keep it from beeping. I'm using a NumericUpDown control instead of a textbox. I've tried...
4
by: Ross | last post by:
Anyone have any code that will sound a click from the PC speaker with keystrokes? Any easy way to get a beep out of the PC speaker (not through the sound card)? Thanks, Ross
2
by: Paul | last post by:
I created a sample Project with a basic form and one text box. I put "e.Handled = True" on every KeyDown, KeyPress and KeyUp event for both the Form and the TextBox. When I run the app, and press...
2
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
I have a tabcontrol where I want to capture the CTRL+C key combination. My tabcontrol has on its tabpages some treeView controls. My intention is to intercept the event of pressing the CTRL+C when...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.