You could use:
System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav");
player.Play();
More Related Contents:
- How to programmatically set the system volume?
- Play multiple sounds using SoundPlayer
- How can I make the computer beep in C#?
- C#, Winform: How to pass information from one form to another [duplicate]
- C# difference between == and Equals()
- Is there a difference between “throw” and “throw ex”?
- Using async/await for multiple tasks
- How can I read a file even when getting an “in use by another process” exception?
- Why does my .NET 4 application know .NET 4 is not installed
- C# Telnet Library
- using c# .net libraries to check for IMAP messages from gmail servers [closed]
- Get Month name from month number
- How do I represent a time only value in .NET?
- How to store data locally in .NET (C#) [closed]
- Float/double precision in debug/release modes
- What is the default value for enum variable?
- How to use TransactionScope in C#?
- Find all child controls of specific type using Enumerable.OfType() or LINQ
- How to create a C# Winforms Control that hovers
- Should you obfuscate a commercial .Net application?
- How to define generic type limit to primitive types?
- streamWriter rewrite the file or append to the file
- Properties.Settings.Default.Save(); -> Where is that file
- Built-in helper to parse User.Identity.Name into Domain\Username
- Are static variables thread-safe? C#
- Are there .NET Framework methods to parse an email (MIME)?
- How to create a form with a border, but no title bar? (like volume control on Windows 7)
- MessageBox buttons – set language?
- Why are signed assemblies slow to load?
- how do i get TcpListener to accept multiple connections and work with each one individually?