473,396 Members | 2,050 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,396 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 12552
"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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.