4

Is there any way to disable the sound that sounds when a messageBox shows?

james
  • 2,595
  • 9
  • 43
  • 70

2 Answers2

4

There is a way - you have to show the MessageBox using XNA

There are a few articles around -

You need to play with the MessageBoxIcon method:

MessageBoxIcon is in fact not an icon (yeah, I know - the name says so). On Windows Phone 7, it will define the short sound that will accompany the message. And here you have several choices: Alert, None, Error, Warning

However, be warned that using the XNA methods is slightly awkward as they are non-blocking methods (and you may also have to look at how they interact with the back button too)

Some people have also written their own messagebox - e.g. http://blogs.microsoft.co.il/blogs/tomershamam/archive/2010/10/19/windows-phone-7-custom-message-box.aspx

Stuart
  • 66,722
  • 7
  • 114
  • 165
  • is this the link you were after http://www.danielmoth.com/Blog/GuideBeginShowMessageBox-Wrapper.aspx – Matt Lacey Mar 09 '11 at 18:50
  • One hint for the marketplace acceptance - make sure that the popup is cleared when you press the back button. – Stuart Mar 10 '11 at 22:10
  • 1
    Yeah, too bad I did not see this before I submitted it! It got rejected because if did not clear.But it has since been accepted.Thanks – james Mar 19 '11 at 12:37
0

At this time, there is no way for the user to disable this sound and there is no way as a developer to disable this sound either.

Derek Lakin
  • 16,179
  • 36
  • 51