Click to See Complete Forum and Search --> : Sound problem
Hello all.
Anyone have any idea how can I eliminate the sound that automatically sound
every time we call a messagebox function. If I am not mistaken this are windows
generated sounds so maybe I can call some API function? But which one?.
I do not wish to mute the PC speaker since there are other processes running
in the background for instance the ability to listen to Internet radio while
using my application or just listen to CD music.
Any idea?
Please help... Thank you.
Rick Bean
06-22-2001, 01:55 PM
Josh,
Since Messagebox() is just a wrapper for the Win API of the same name, you
can't kill the sounds. If they are really objectionable, consider using a
substitute that just uses "native" VFP forms. And if you don't want to write
your own, there are a number of them on the UT. Go to -
http://www.universalthread.com/Live/Download5.asp , then in search enter
messagebox. This should lead you at least 3 or 4 that you can choose
between. (Note: I believe they were going to be down this afternoon for
maintenance, so don't panic if you can't get there right away.)
Rick
"Josh" <akimel@bigfoot.com> wrote in message
news:3b3368cc$1@news.devx.com...
>
> Hello all.
>
> Anyone have any idea how can I eliminate the sound that automatically
sound
> every time we call a messagebox function. If I am not mistaken this are
windows
> generated sounds so maybe I can call some API function? But which one?.
> I do not wish to mute the PC speaker since there are other processes
running
> in the background for instance the ability to listen to Internet radio
while
> using my application or just listen to CD music.
>
> Any idea?
>
> Please help... Thank you.
Fred Taylor
06-23-2001, 12:33 PM
The sound for a MessageBox is controlled by the Windows Control Panel
(Sounds and Multimedia applet). The standard sound is the "Default Beep" so
you can just change that to "(None)" to stop the sound, or to anything else
you may want to hear.
Second parameter to MessageBox determines which icon is displayed and which
sound in the control panel is used:
No parameter - the "Default Beep", no icon
16 - the "Critical Stop", "X" stop sign icon
32 - the "Question", "?" icon
64 - the "Asterisk", "i" icon
--
Fred
Microsoft Visual FoxPro MVP
Please respond only to the newsgroups so that all may benefit.
"Josh" <akimel@bigfoot.com> wrote in message
news:3b3368cc$1@news.devx.com...
>
> Hello all.
>
> Anyone have any idea how can I eliminate the sound that automatically
sound
> every time we call a messagebox function. If I am not mistaken this are
windows
> generated sounds so maybe I can call some API function? But which one?.
> I do not wish to mute the PC speaker since there are other processes
running
> in the background for instance the ability to listen to Internet radio
while
> using my application or just listen to CD music.
>
> Any idea?
>
> Please help... Thank you.
devx.com
Copyright Internet.com Inc. All Rights Reserved