Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I kill the sound in MessageBox.Show()

Status
Not open for further replies.

Jrhaynes

Technical User
Oct 27, 2006
21
0
0
US
When using an standard icon with MessageBox.Show on the Windows XP platform there is no sound (dings). That's great and its an improvement over the MsgBox() command which always made sounds whether you wanted them or not. But now I find that MessageBox.show does make sound when ran in Vista! That's a dissapointment. Is there a way (other than using my own custom message box) to use the .Net system MessageBox.show command with the built in icon but NOT have the sounds on any platform?
 

MsgBox() and MessageBox.Show() (with no icon defined, so default) both play a sound (the system's "Default Beep") when activated on all of the XP systems at my work.

I believe the only way to do this is to either 1) make your own messasge box, or 2) temporarily reassign the "Default Beep" sound in the registry.


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top