-1

I am trying to make a .wav music file start whenever the program starts. No, I am not trying to make music play when the user click on a button, I am trying to make music start by itself whenever the program starts.

I need it for my C# program.

1 Answers1

0

Use SoundPlayer and call it in Main method:

private static void Main(string[] args)
{
  System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\test.wav");
  player.Play();

  // do something else....
}