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!~~~

Recommended Answers

All 2 Replies

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

Be a part of the DaniWeb community

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