I'm having problem with sound file(*.wav)

In a form, when i click a button, i want to call sound file and play this file.

How can i do?

Help me!~~~

System.Media.SoundPlayer p = new System.Media.SoundPlayer();
p.SoundLocation = @"C:\Users\Master\Desktop\Prmpt445.wav";
p.Play();

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.