-
July 20th, 2002, 07:49 AM
#1
the bell from ****
I just moved a bunch of VB development to a different machine and now all my msg boxes ring a bell, which they did not do on the first machine.
the machine differences are "good" machine has WinXP and no external sound system (no sound card or speakers, just normal PC speaker)
"bad" machine runs Win98 and has a SoundBlaser Live sound card w/ external speaker.
Why sound card should matter, I can't imagine, since I thought the bell was a "normal PC speaker" thing, but I mention it in case there's some difference I'm not aware of.
any clues? this bell is driving me nuts, but I really don't want to rip out all my msgbox use
-
July 20th, 2002, 08:18 AM
#2
Go to Control panel and choose Sounds. After the Sounds dialog appears, select from the listbox under Events the Default sound. Now from the combobox below Name choose (none).
If you want to disable sounds associated with different windows events then from the combobox below Schemes select (none).
-
July 20th, 2002, 08:30 AM
#3
good call --- works like a charm, of course. Thanks. I feel like a doofus for not thinking of that myself.
Now I've killed the "default" sound for EVERYTHING, whereas I really only wanted to kill it for my VB apps.
Is there any API call that kills the sound for just the current app?
-
July 20th, 2002, 09:33 AM
#4
Try setting the sound volume to zero in your application. I think the API calls below should help.
Code:
Private Declare Function auxSetVolume Lib "winmm.dll" (ByVal uDeviceID As Long, ByVal dwVolume As Long) As Long
Private Declare Function auxGetVolume Lib "winmm.dll" (ByVal uDeviceID As Long, ByRef lpdwVolume As VolumeSetting) As Long
-
July 20th, 2002, 10:06 AM
#5
MKSa, thanks. I'll give this a try
-
March 26th, 2003, 06:21 AM
#6
a trick...
Create a new wav file of samll size with no sound at all (=register silence for the smallest time you can). Associate that wav with events...
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|