Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

Textbox Enter-key Beep

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
moondaddy - 10 Aug 2005 03:59 GMT
I'm writing a winforms app in vb.net 1.1 and have an issue when users click
the enter key on a textbox.  It make a beep sound as if an error had
occurred.  how can I turn off the beep sound?  I'm actually trapping the key
up event and when the user uses the enter key I do something.  Any good
advise?

I saw some other posts on this but they had already expired and were no
longer on the server.

Thanks.

Signature

moondaddy@nospam.nospam

Tim Wilson - 10 Aug 2005 05:08 GMT
One way to do this is to just "eat" the enter...

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
 If e.KeyChar = ControlChars.Cr Then
   e.Handled = True
 End If
End Sub

Signature

Tim Wilson
.Net Compact Framework MVP

> I'm writing a winforms app in vb.net 1.1 and have an issue when users click
> the enter key on a textbox.  It make a beep sound as if an error had
[quoted text clipped - 6 lines]
>
> Thanks.
moondaddy - 12 Aug 2005 05:08 GMT
Thanks!  That worked very nice.

Signature

moondaddy@nospam.nospam

> One way to do this is to just "eat" the enter...
>
[quoted text clipped - 17 lines]
>>
>> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.