How to

stop playing background sound

Published: 8. January 2009 | Updated: 8. January 2009
License: Microsoft Public License (MS-PL)
Categories: Winforms
Tags: C# Media Windows Winforms
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Media;

Code

SoundPlayer sound = new SoundPlayer();
sound.Stop();
Send us feedback about this snippet »



Related Snippets: