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);
More Related Contents:
- How to programmatically set the system volume?
- How to play a sound in C#, .NET
- Play multiple sounds using SoundPlayer
- .NET String.Format() to add commas in thousands place for a number
- Cleanest way to write retry logic?
- How do I create 7-Zip archives with .NET?
- Where are the Properties.Settings.Default stored?
- Regarding usage of Task.Start() , Task.Run() and Task.Factory.StartNew()
- Task sequencing and re-entracy
- What .NET collection provides the fastest search
- Combining multiple Attributes to a single Attribute – Merge Attributes
- How can I find the state of NumLock, CapsLock and ScrollLock in .NET?
- WebBrowser print settings
- DateTimePicker: pick both date and time
- How would it be possible to remove all event handlers of the ‘Click’ event of a ‘Button’?
- ef4 cause Circular reference in web service
- XmlTextReader vs. XDocument
- WinForms Layered Controls with Background images cause tearing while scrolling
- How to switch between “possible” type of an object? [duplicate]
- Is there a way of setting a property once only in C#
- Cannot find Microsoft.Office.Interop Visual Studio
- Asynchronous iterator Task
- How to create multiple directories from a single full path in C#?
- Binding Combobox Using Dictionary as the Datasource
- Why are my application settings not getting persisted?
- Encrypt SQLite database in C#
- Partial class in different namespaces
- .net local assembly load failed with CAS policy
- What exactly is “interface based programming”?
- Best way to restrict access by IP address?