How do I make the computer's internal speaker beep in C# without external speakers?
In .Net 2.0, you can use Console.Beep().
// Default beep
Console.Beep();
You can also specify the frequency and length of the beep in milliseconds.
// Beep at 5000 Hz for 1 second
Console.Beep(5000, 1000);
You can also use the relatively unused:
System.Media.SystemSounds.Beep.Play();
System.Media.SystemSounds.Asterisk.Play();
System.Media.SystemSounds.Exclamation.Play();
System.Media.SystemSounds.Question.Play();
System.Media.SystemSounds.Hand.Play();
Does anyone know a site or have any info on where I can find some Xmas tunes in 'beep' format?
windows xp 64bit version beeps fine, without speakers. Thanks for the short line, I like it simple and good...
Hi !
I am running Windows Server 2008 R2 [only exists as a x64 version] and all beep related functions do NOT work [have no XP/x64 to compare]. So some people may be happy about this, as a server administrator I am completely unhappy:All my long running scripts [WSH/PS/CMD even C#] use usually this type of feedback.
If someone could possibly look on a XP/x64 version for the speaker driver and tell me, if this is really present, I could possibly organize one and try to install it on a w2k8 server ;-)
I filed this as a recommendation to MS-Connect [should have been marked as bug] and this is mentioned in stackoverflow already [http://stackoverflow.com/questions/1488531/net-winform-system-beep-on-a-64-bit-os].
Thanks !
mabra