473,394 Members | 1,746 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,394 software developers and data experts.

Sounds in a text box

Is there a way to disable sounds/beeper in a text box? In particular I don't want to hear a beep when I hit the PgUp key in an empty
text box.

-Harry
Nov 16 '05 #1
2 2101

I face to the same problem in VB .net. Below KB article does resolve the
problem in VB but not VB .net. Is there anyone can help?

How To Disable the ENTER Key BEEP in a VB Text Box
http://support.microsoft.com/default...b;en-us;140882

"Harry J. Smith" wrote:
Is there a way to disable sounds/beeper in a text box? In particular I don't want to hear a beep when I hit the PgUp key in an empty
text box.

-Harry

Nov 16 '05 #2
The following code works for me to disable the ENTER beep in a text box
(it's in C# but should translate to VB.NET easily enough):

private void textBox2_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e) {
if (e.KeyChar == '\r') e.Handled = true;
}

Chris Jobson

"Jonathan Lee" <Jo*********@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...

I face to the same problem in VB .net. Below KB article does resolve the
problem in VB but not VB .net. Is there anyone can help?

How To Disable the ENTER Key BEEP in a VB Text Box
http://support.microsoft.com/default...b;en-us;140882

"Harry J. Smith" wrote:
Is there a way to disable sounds/beeper in a text box? In particular I
don't want to hear a beep when I hit the PgUp key in an empty
text box.

-Harry

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: BlackHawke | last post by:
Hello! In our game package (www.andromedaonline.net) we are having problems with sounds. We have placed them in a jar file, and are trying to access them from there. The jar file has a...
1
by: Knocked Wood | last post by:
Hi, I looked around and can't find anything on this at all and can not get it to work for IE. I'm trying to loop multiple sounds on a game, with three unique variables, when a link is clicked....
3
by: Lee David | last post by:
Where can I find some 1) sounds such as a "boing" or "click", 2) what tags do I use and 3) are there examples of triggering a sound such as 1) button clicked and 2) when a time interval has passed?...
6
by: Jimnbigd | last post by:
I want to write a game, and sounds will really add to it. Note that I would always make the sounds optional. I hate it when I go to a URL and unexpectedly get sounds or music. I have played...
1
by: Terry Olsen | last post by:
Using the following routine to play embedded wav files: Private Sub PlaySound(ByVal Sound As Int32) Select Case Sound Case 1 : My.Computer.Audio.Play(My.Resources.Sounds.GoOnline,...
4
by: Arnold | last post by:
Hi there, Here's the situation--there is a text field in a form in which students will key in data. On the keypress event, I'd like for different sounds to be played for each character typed,...
0
by: himoundary | last post by:
hi all i am using microsoft speech sdk (sapi 5.1). i have the following requirements: 1) i need to compare current input sound (through mic) with recorded sound file (say .wav). based of...
4
by: alice | last post by:
I'm trying to get sounds to play on image mouseovers using dreamweaver 8, and I found out that the code it generates to do this only works for IE. Is there a way to do this so that it will work...
1
by: michels287 | last post by:
Hello... Currently I have an array of 8 listboxes in VB6. Each item in my listbox plays a wav sound from a large file on my desktop called "Sounds". I am using the sndPlaySound API. The code I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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.