I am wondering, how and if it's possible to play a simple sound, when the user moves over a button (button1) for example. I can imagine something like this:
if(button1.Touched) {// play sound }
I am wondering, how and if it's possible to play a simple sound, when the user moves over a button (button1) for example. I can imagine something like this:
if(button1.Touched) {// play sound }
Use this:
System.Media.SoundPlayer mediaPlayer = new System.Media.SoundPlayer(@"c:\Sound.wav");
public void button1_MouseHover(object sender, EventArgs e)
{
mediaPlayer.Play();
}