How to stop the beep on keypress?

  • Thread starter Thread starter strchild
  • Start date Start date
S

strchild

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
 
strchild said:
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?


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
 
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
 
* "strchild said:
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>
 
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
 
Herfried K. Wagner said:
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.
 
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
 
Back
Top