It's in System.Media and is only available for .Net 2.0.
using System.Media; // Make sure you have this for
SystemSounds
namespace Sounds
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
SystemSounds.Asterisk.Play();
}
}
}
Works for me...
HTH
Steve
"mikeq" <mi***@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
Would you mind telling me what the full namespace of the SystemSounds
Class
is, I don't see it in my Visual Studio Help. I have Vs .NET 2003. Is this
a
VS 2005 new feature?
Thank you
-- Mikeq
"John Salerno" wrote:
I just tried out the SystemSounds class, following along with C#
Developer's Notebook, but it doesn't seem to work. I just put the
following line on a button's click event, but when run the app and click
the button, there's no sound at all.
SystemSounds.Asterisk.Play();