Solved

Why does beep not work

Posted on 2006-06-18
3
176 Views
Last Modified: 2010-04-30
When I enter a beep command, nothing happens.  No sound at all.
All the other windows sounds work fine, but when I enter the beep command in my app, it makes no sound.

Can anybody tell me what I'm missing?

Cheers!
ahammar
0
Comment
Question by:ahammar
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 16930127
Hi,

From the Windows Control Panel, click the "Sounds and Audio Devices" applet, and then select the [Sounds] tab.

Within the "Program events:" list under the "Windows" category, select "Default Beep" & note the ".wav" file within the "Sounds:" drop-down list, for example, "Windows XP Ding.wav".

If you click the ">" play button, can you hear the sound?  If not, click the [Browse...] button & select any other ".wav" file.

Check that this ".wav" plays correctly, using the ">" button.  If it does, click [OK] to confirm.

If it does not, please come back to discuss further.

Otherwise, return to your code & execute a Beep command again & note any difference.

BFN,

fp.

0
 
LVL 23

Author Comment

by:ahammar
ID: 16930205
Ok, that was the problem.  It works now.  There was no default sound assigned.  I never unassigned it, so XP must be default without it.  Strange.  I guess I better use some type of play command or api or something in case another user has the same problem.

Anyway...Thank you!

Cheers!
ahammar
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 16930240
You're very welcome.

You could, of course, determine if a sound file had been defined (by reading the system registry) &/or the actual file can be found in the specified location, and if either conditions are not met, then look for the first ".wav" file & assign it, or use a different approach as you suggested above.

Good luck.

BFN,

fp.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run code from text file in vb 1 65
vb6 connector to SQL Server 2 37
MS SQL store procedure to calculate and return result 6 58
fso.FolderExists("\\server\HiddenFolder$") 4 69
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question