How to: Play a Sound Embedded in a Resource from a Windows Form
.NET Framework 3.0
You can use theclass to play a sound from an embedded resource.
Compiling the Code
This example requires:
Including the sound file as an embedded resource in your project.
Replacing "<AssemblyName>" with the name of the assembly in which the sound file is embedded. Do not include the ".dll" suffix.