|
-
Sep 11th, 2011, 12:22 AM
#1
Thread Starter
Fanatic Member
What is the beep code for an error?
The following code produces a sound that's like a tone or a soft bell, indicating that an action has completed successfully:
Code:
System.Media.SystemSounds.Beep.Play()
Can anyone provide the code for the opposite? You know like if you tried to do something in Windows that was invalid. Is there some kind of default sound indicating an error that I can invoke on a Windows computer in VB.Net similar to the one above only discordant?
-
Sep 11th, 2011, 12:31 AM
#2
Re: What is the beep code for an error?
Some questions just don't need asking. The SystemSounds class only has four other properties besides Beep. Why can't you just Play each one to determine which one you need? If your first instinct is to ask others to tell you something that you could work out for yourself in about 30 seconds, you're never going to make it as a developer.
-
Sep 11th, 2011, 08:29 AM
#3
Thread Starter
Fanatic Member
Re: What is the beep code for an error?
-
Sep 11th, 2011, 10:32 AM
#4
Hyperactive Member
Re: What is the beep code for an error?
jmc was talking about this :
vb.net Code:
System.Media.SystemSounds.Hand.Play()
-
Sep 11th, 2011, 11:12 AM
#5
Re: What is the beep code for an error?
The SystemSounds aren't necessarily those infuriating noises provided by Microsoft. Each user can set their own samples for the system sounds in the control panel (WinXP); or nothing at all. Come to think of it, I'd like to turn all my sounds into birdsong: a nightingale for a beep, a vulture for a critical stop and so on... If you want to play your own samples from your program instead of the system sounds, use My.Computer.Audio.Play(wavefile). But I hope I don't have to use that program.
BB
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
|